public function CourseObjectPoll::getReports in Course 7
Same name and namespace in other branches
- 6 modules/course_poll/course_poll.classes.inc \CourseObjectPoll::getReports()
- 7.2 modules/course_poll/course_poll.classes.inc \CourseObjectPoll::getReports()
Let the course object provide its own reports.
Return value
array An array indexed by report key, containing 'title' which is the menu link in the course object reports.
Overrides CourseObject::getReports
See also
CourseObjectQuiz::getReports()
File
- modules/
course_poll/ course_poll.classes.inc, line 38
Class
- CourseObjectPoll
- Parent class for poll tracking.
Code
public function getReports() {
$reports = parent::getReports();
$reports += array(
'results' => array(
'title' => 'Results',
),
'all' => array(
'title' => 'List votes',
),
);
return $reports;
}