Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

File Size: 96 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

report_base:: (2 methods):
  print_header_and_tabs()
  get_current_group()


Class: report_base  - X-Ref

Base class for quiz report plugins.

Doesn't do anything on its 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".

print_header_and_tabs($cm, $course, $quiz, $reportmode = 'overview')   X-Ref
Initialise some parts of $PAGE and start output.

param: stdClass $cm the course_module information.
param: stdClass $course the course settings.
param: stdClass $quiz the quiz settings.
param: string $reportmode the report name.

get_current_group($cm, $course, $context)   X-Ref
Get the current group for the user user looking at the report.

param: stdClass $cm the course_module information.
param: stdClass $course the course settings.
param: context $context the quiz context.
return: int the current group id, if applicable. 0 for all users,