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.

Differences Between: [Versions 402 and 403]

(no description)

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

Defines 1 class

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


Class: 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