You are here

public function CourseObjectAccess::getOption in Course 7.2

Same name and namespace in other branches
  1. 7 includes/CourseObjectAccess.inc \CourseObjectAccess::getOption()
10 calls to CourseObjectAccess::getOption()
CourseObjectAccess::alterOptions in includes/CourseObjectAccess.inc
Alter a property during display/tracking. Does not affect the stored options. This is called in CourseObject::getReadOnlyOptions().
CourseObjectAccess::take in includes/CourseObjectAccess.inc
Can the user take the object?
CourseObjectAccessConditional::see in plugins/course_object_access/conditional.inc
Can the user see the object in the outline?
CourseObjectAccessConditional::take in plugins/course_object_access/conditional.inc
Can the user take the object?
CourseObjectAccessGrade::see in plugins/course_object_access/grade.inc
Can the user see the object in the outline?

... See full list

File

includes/CourseObjectAccess.inc, line 91

Class

CourseObjectAccess
Access handler for CourseObjects.

Code

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