Moodle  2.2.1
http://www.collinsharper.com
quiz_default_report Class Reference
Inheritance diagram for quiz_default_report:

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

Detailed Description

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.


Member Function Documentation

display ( cm,
course,
quiz 
) [abstract]

Override this function to displays the report.

Parameters:
$cmthe course-module for this quiz.
$coursethe coures we are in.
$quizthis 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.

Parameters:
object$cmthe course_module information.
object$couresthe course settings.
context$contextthe quiz context.
Returns:
int the current group id, if applicable. 0 for all users, NO_GROUPS_ALLOWED if the user cannot see any group.

Definition at line 82 of file default.php.

Here is the call graph for this function:

Here is the caller graph for this function:

print_header_and_tabs ( cm,
course,
quiz,
reportmode = 'overview' 
)

Initialise some parts of $PAGE and start output.

Parameters:
object$cmthe course_module information.
object$couresthe course settings.
object$quizthe quiz settings.
string$reportmodethe report name.

Definition at line 64 of file default.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

const NO_GROUPS_ALLOWED = -2

Definition at line 46 of file default.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations