|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| display ($cm, $course, $quiz) | |
| print_header_and_tabs ($cm, $course, $quiz, $reportmode= 'overview') | |
| get_current_group ($cm, $course, $context) | |
Data Fields | |
| const | NO_GROUPS_ALLOWED = -2 |
Base class for quiz report plugins.
Doesn't do anything on it's own -- it needs to be extended. This class displays quiz reports. Because it is called from within /mod/quiz/report.php you can assume that the page header and footer are taken care of.
This file can refer to itself as report.php to pass variables to itself - all these will also be globally available. You must pass "id=$cm->id" or q=$quiz->id", and "mode=reportname".
Definition at line 45 of file default.php.
| display | ( | $ | cm, |
| $ | course, | ||
| $ | quiz | ||
| ) | [abstract] |
Override this function to displays the report.
| $cm | the course-module for this quiz. |
| $course | the coures we are in. |
| $quiz | this quiz. |
Reimplemented in quiz_grading_report, quiz_statistics_report, quiz_responses_report, and quiz_overview_report.
| get_current_group | ( | $ | cm, |
| $ | course, | ||
| $ | context | ||
| ) |
Get the current group for the user user looking at the report.
| object | $cm | the course_module information. |
| object | $coures | the course settings. |
| context | $context | the quiz context. |
Definition at line 82 of file default.php.


| print_header_and_tabs | ( | $ | cm, |
| $ | course, | ||
| $ | quiz, | ||
| $ | reportmode = 'overview' |
||
| ) |
Initialise some parts of $PAGE and start output.
| object | $cm | the course_module information. |
| object | $coures | the course settings. |
| object | $quiz | the quiz settings. |
| string | $reportmode | the report name. |
Definition at line 64 of file default.php.


| const NO_GROUPS_ALLOWED = -2 |
Definition at line 46 of file default.php.