Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Base class for quiz report plugins. More...
Public Member Functions | |
display ($cm, $course, $quiz) | |
Override this function to displays the report. More... | |
get_current_group ($cm, $course, $context) | |
Get the current group for the user user looking at the report. More... | |
print_header_and_tabs ($cm, $course, $quiz, $reportmode='overview') | |
Initialise some parts of $PAGE and start output. More... | |
Public Attributes | |
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". @copyright 1999 onwards Martin Dougiamas and others <a class="el externalurl" href="http://moodle.com">
|
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 testable_quiz_attempts_report, quiz_grading_report, quiz_overview_report, quiz_responses_report, and quiz_statistics_report.
quiz_default_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. |
int | the current group id, if applicable. 0 for all users, NO_GROUPS_ALLOWED if the user cannot see any group. |
quiz_default_report::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. |
Reimplemented in quiz_grading_report.