Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Admin settings class for the quiz review options.

Copyright: 2008 Tim Hunt
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 176 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_quiz_admin_review_setting:: (8 methods):
  fields()
  __construct()
  all_on()
  times()
  normalise_data()
  get_setting()
  write_setting()
  output_html()


Class: mod_quiz_admin_review_setting  - X-Ref

Admin settings class for the quiz review options.

fields()   X-Ref
This should match {@link mod_quiz_mod_form::$reviewfields} but copied
here because generating the admin tree needs to be fast.

return: array

__construct($name, $visiblename, $description,$defaultsetting, $duringstate = null)   X-Ref
Constructor.

param: string $name unique ascii name, either 'mysetting' for settings that in config,
param: string $visiblename localised name
param: string $description localised long description
param: mixed $defaultsetting string or array depending on implementation
param: bool|null $duringstate

all_on()   X-Ref
Return the combination that means all times.

return: int all times.

times()   X-Ref
Get an array of the names of all the possible times.

return: array an array of time constant => lang string.

normalise_data($data)   X-Ref
No description

get_setting()   X-Ref
No description

write_setting($data)   X-Ref
No description

output_html($data, $query = '')   X-Ref
No description