You are here

function CourseObject::setComponent in Course 7

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

Set the object component for this course object.

Return value

CourseObject

File

includes/CourseObject.inc, line 832

Class

CourseObject
Parent abstract base class of all course objects.

Code

function setComponent($component) {
  return $this
    ->setOption('object_type', $component);
}