You are here

function CourseObject::setComponent in Course 6

Same name and namespace in other branches
  1. 7.2 includes/CourseObject.inc \CourseObject::setComponent()
  2. 7 includes/CourseObject.inc \CourseObject::setComponent()

Set the object component for this course object.

Return value

CourseObject

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);
}