Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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