You are here

public function CourseObjectAccess::getOptions in Course 7

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

File

includes/CourseObjectAccess.inc, line 44

Class

CourseObjectAccess
Access handler for CourseObjects.

Code

public function getOptions() {
  $plugins = $this
    ->getCourseObject()
    ->getOption('plugins');
  if (isset($plugins['access'][$this->type])) {
    return $plugins['access'][$this->type];
  }
  else {
    return $this
      ->optionsDefinition();
  }
}