function CourseObject::setComponent in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseObject.inc \CourseObject::setComponent()
- 7 includes/CourseObject.inc \CourseObject::setComponent()
Set the object component for this course object.
Return value
File
- includes/
course_object.core.inc, line 763
Class
- CourseObject
- Parent abstract base class of all course objects.
Code
function setComponent($component) {
return $this
->setOption('object_type', $component);
}