final public function CourseHandler::getOption in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseHandler.inc \CourseHandler::getOption()
- 7 includes/CourseHandler.inc \CourseHandler::getOption()
Get an option stored in this CourseObject.
Return value
mixed
30 calls to CourseHandler::getOption()
- CourseHandler::getId in includes/
course.core.inc - CourseObject::access in includes/
course_object.core.inc - Access functionality for course objects.
- CourseObject::getComponent in includes/
course_object.core.inc - Get the object component for this course object.
- CourseObject::getCourseNid in includes/
course_object.core.inc - Get the course node ID this CourseObject belongs to.
- CourseObject::getInstanceId in includes/
course_object.core.inc - Get the instance ID. This could be the external component ID, a Node ID...
File
- includes/
course.core.inc, line 75 - course.core.inc File for main Course class.
Class
- CourseHandler
- @file course.core.inc File for main Course class.
Code
public final function getOption($key) {
$config = $this
->getOptions();
if (isset($config[$key])) {
return $config[$key];
}
else {
return NULL;
}
}