public function CourseObjectAccessGrade::getObjectOptions in Course 7.2
Same name and namespace in other branches
- 7 plugins/course_object_access/grade.inc \CourseObjectAccessGrade::getObjectOptions()
Helper method to get possible graded objects.
Overrides CourseObjectAccess::getObjectOptions
1 call to CourseObjectAccessGrade::getObjectOptions()
- CourseObjectAccessGrade::optionsForm in plugins/
course_object_access/ grade.inc - Define the form to be used in the object access settings area.
File
- plugins/
course_object_access/ grade.inc, line 137
Class
Code
public function getObjectOptions() {
$options = array(
'',
);
foreach ($this
->getCourseObject()
->getCourse()
->getObjects() as $courseObject) {
if ($courseObject
->getId() != $this
->getCourseObject()
->getId() && $courseObject
->isGraded()) {
$options[$courseObject
->getId()] = $courseObject
->getTitle();
}
}
return $options;
}