You are here

public function CourseObjectAccess::getOptions in Course 7.2

Same name and namespace in other branches
  1. 7 includes/CourseObjectAccess.inc \CourseObjectAccess::getOptions()
6 calls to CourseObjectAccess::getOptions()
CourseObjectAccess::getOption in includes/CourseObjectAccess.inc
CourseObjectAccess::optionsForm in includes/CourseObjectAccess.inc
Define the form to be used in the object access settings area.
CourseObjectAccessConditional::optionsForm in plugins/course_object_access/conditional.inc
Define the form to be used in the object access settings area.
CourseObjectAccessGrade::optionsForm in plugins/course_object_access/grade.inc
Define the form to be used in the object access settings area.
CourseObjectAccessGrade::take in plugins/course_object_access/grade.inc
Can the user take the object?

... See full list

File

includes/CourseObjectAccess.inc, line 81

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();
  }
}