function CourseObject::getTitle in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseObject.inc \CourseObject::getTitle()
- 7 includes/CourseObject.inc \CourseObject::getTitle()
13 calls to CourseObject::getTitle()
- CourseObject::getCloneAbility in includes/
course_object.core.inc - Returns an translated error message if this object has issues with cloning.
- CourseObject::optionsForm in includes/
course_object.core.inc - Default options form for all course objects.
- CourseObject::save in includes/
course_object.core.inc - Let objects create their instances before saving the course object.
- CourseObjectBook::create in modules/
course_book/ course_book.classes.inc - Make the book.
- CourseObjectBook::getCloneAbility in modules/
course_book/ course_book.classes.inc - Returns an translated error message if this object has issues with cloning.
File
- includes/
course_object.core.inc, line 810
Class
- CourseObject
- Parent abstract base class of all course objects.
Code
function getTitle() {
$object_info = course_get_handlers('object');
// If title is not specified, set title from component.
if (!$this
->getOption('title')) {
// Get the component name from object info.
$title = $object_info[$this
->getOption('module')][$this
->getOption('object_type')]['name'];
$this
->setOption('title', $title);
}
return $this
->getOption('title');
}