You are here

function CourseObjectNode::getTitle in Course 7

Same name and namespace in other branches
  1. 7.2 includes/CourseObjectNode.inc \CourseObjectNode::getTitle()

Get the object title, or return this object's node's title if the option is set.

Overrides CourseObject::getTitle

4 calls to CourseObjectNode::getTitle()
CourseObjectBook::getCloneAbility in modules/course_book/course_book.classes.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectNode::create in includes/CourseObjectNode.inc
Create a node and set it as this course object's node.
CourseObjectNode::getCloneAbility in includes/CourseObjectNode.inc
Returns an translated error message if this object has issues with cloning.
CourseObjectQuiz::getCloneAbility in modules/course_quiz/course_quiz.classes.inc
Returns an translated error message if this object has issues with cloning.

File

includes/CourseObjectNode.inc, line 396

Class

CourseObjectNode
A course object that uses a node as a base.

Code

function getTitle() {
  if ($this
    ->getOption('use_node_title') && $this->node) {
    return $this->node->title;
  }
  else {
    return parent::getTitle();
  }
}