You are here

public function CourseHandler::setOption in Course 7

Same name and namespace in other branches
  1. 6 includes/course.core.inc \CourseHandler::setOption()
  2. 7.2 includes/CourseHandler.inc \CourseHandler::setOption()

Set an option for this handler.

Parameters

string $option: An option key.

mixed $value: The option value.

Return value

CourseHandler

14 calls to CourseHandler::setOption()
CourseHandler::setOptions in includes/CourseHandler.inc
Set this entire handler's options.
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.

... See full list

File

includes/CourseHandler.inc, line 79

Class

CourseHandler
Master class for anything Course related.

Code

public function setOption($option, $value) {
  if (!preg_match('/\\*/', $option) && is_scalar($option)) {
    $this->{$option} = $value;
  }
  return $this;
}