You are here

public function CourseObjectAccess::getOption in Course 7

Same name and namespace in other branches
  1. 7.2 includes/CourseObjectAccess.inc \CourseObjectAccess::getOption()
8 calls to CourseObjectAccess::getOption()
CourseObjectAccessConditional::see in plugins/course_object_access/conditional.inc
CourseObjectAccessConditional::take in plugins/course_object_access/conditional.inc
CourseObjectAccessGrade::see in plugins/course_object_access/grade.inc
CourseObjectAccessGrade::take in plugins/course_object_access/grade.inc
CourseObjectAccessTiming::isExpired in plugins/course_object_access/timing.inc

... See full list

File

includes/CourseObjectAccess.inc, line 54

Class

CourseObjectAccess
Access handler for CourseObjects.

Code

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