You are here

public function CourseHandler::getOption in Course 7

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

Get an handler option's value.

Return value

mixed

31 calls to CourseHandler::getOption()
Course::getNavigation in includes/Course.inc
Generate navigation links.
CourseObject::access in includes/CourseObject.inc
Access functionality for course objects.
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...

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