You are here

public function CourseHandler::getOption in Course 7.2

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

Get an handler option's value.

Return value

mixed

29 calls to CourseHandler::getOption()
Course::getNavigation in includes/Course.inc
Generate navigation links.
CourseObject::getComponent in includes/CourseObject.inc
Get the object component for this course object.
CourseObject::getCourseNid in includes/CourseObject.inc
Get the course node ID this CourseObject belongs to.
CourseObject::getInstanceId in includes/CourseObject.inc
Get the instance ID. This could be the external component ID, a Node ID...
CourseObject::getModule in includes/CourseObject.inc
Get the module that provides this course object.

... See full list

File

includes/CourseHandler.inc, line 59

Class

CourseHandler
Master class for anything Course related.

Code

public function getOption($key) {
  $options = $this
    ->getOptions();
  if (isset($options[$key])) {
    return $options[$key];
  }
  else {
    return NULL;
  }
}