You are here

public function CourseObject::setOption in Course 7.2

Clear the read only options cache before changing an option.

Overrides CourseHandler::setOption

10 calls to CourseObject::setOption()
CourseObject::getTitle in includes/CourseObject.inc
CourseObject::save in includes/CourseObject.inc
Let objects create their instances before saving the course object.
CourseObject::setComponent in includes/CourseObject.inc
Set the object component for this course object.
CourseObject::setCourse in includes/CourseObject.inc
Set the Course for this CourseObject.
CourseObject::setId in includes/CourseObject.inc
Set the internal course object ID.

... See full list

File

includes/CourseObject.inc, line 1147

Class

CourseObject
Parent abstract base class of all course objects.

Code

public function setOption($option, $value) {
  $this->readOnlyOptionsCache = [];
  return parent::setOption($option, $value);
}