|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($name, $visiblename, $description, $defaultsetting, $duringstate=null) | |
| get_setting () | |
| write_setting ($data) | |
| output_html ($data, $query= '') | |
Static Public Member Functions | |
| static | fields () |
| static | all_on () |
Data Fields | |
| const | DURING = 0x10000 |
| const | IMMEDIATELY_AFTER = 0x01000 |
| const | LATER_WHILE_OPEN = 0x00100 |
| const | AFTER_CLOSE = 0x00010 |
Protected Member Functions | |
| normalise_data ($data) | |
Static Protected Member Functions | |
| static | times () |
Protected Attributes | |
| $duringstate | |
Admin settings class for the quiz review opitions.
Definition at line 37 of file settingslib.php.
| __construct | ( | $ | name, |
| $ | visiblename, | ||
| $ | description, | ||
| $ | defaultsetting, | ||
| $ | duringstate = null |
||
| ) |
Definition at line 70 of file settingslib.php.
| static all_on | ( | ) | [static] |
Definition at line 79 of file settingslib.php.
| static fields | ( | ) | [static] |
This should match mod_quiz_mod_form::$reviewfields but copied here because generating the admin tree needs to be fast.
Definition at line 58 of file settingslib.php.
| get_setting | ( | ) |
Returns current value of this setting
Reimplemented from admin_setting.
Definition at line 108 of file settingslib.php.

| normalise_data | ( | $ | data | ) | [protected] |
Definition at line 93 of file settingslib.php.


| output_html | ( | $ | data, |
| $ | query = '' |
||
| ) |
Return part of form with setting This function should always be overwritten
| mixed | $data | array or string depending on setting |
| string | $query |
Reimplemented from admin_setting.
Definition at line 120 of file settingslib.php.

| static times | ( | ) | [static, protected] |
| write_setting | ( | $ | data | ) |
Store new setting
| mixed | $data | string or array, must not be NULL |
Reimplemented from admin_setting.
Definition at line 112 of file settingslib.php.

$duringstate [protected] |
Definition at line 51 of file settingslib.php.
| const AFTER_CLOSE = 0x00010 |
Definition at line 45 of file settingslib.php.
| const DURING = 0x10000 |
Definition at line 42 of file settingslib.php.
| const IMMEDIATELY_AFTER = 0x01000 |
Definition at line 43 of file settingslib.php.
| const LATER_WHILE_OPEN = 0x00100 |
Definition at line 44 of file settingslib.php.