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


Public Member Functions | |
| __construct ($name, $visiblename, $description, $defaultsetting, $yes='1', $no='0') | |
| get_setting () | |
| write_setting ($data) | |
| output_html ($data, $query='') | |
Checkbox with an advanced checkbox that controls an additional $name.'_locked' config setting.
This is nearly a copy/paste of admin_setting_configcheckbox_with_adv
Definition at line 4121 of file adminlib.php.
| __construct | ( | $ | name, |
| $ | visiblename, | ||
| $ | description, | ||
| $ | defaultsetting, | ||
| $ | yes = '1', |
||
| $ | no = '0' |
||
| ) |
Constructor
| string | $name | unique ascii name, either 'mysetting' for settings that in config, or 'myplugin/mysetting' for ones in config_plugins. |
| string | $visiblename | localised |
| string | $description | long localised info |
| array | $defaultsetting | ('value'=>string, 'locked'=>bool) |
| string | $yes | value used when checked |
| string | $no | value used when not checked |
Reimplemented from admin_setting_configcheckbox.
Definition at line 4131 of file adminlib.php.
| get_setting | ( | ) |
Loads the current setting and returns array
Reimplemented from admin_setting_configcheckbox.
Definition at line 4140 of file adminlib.php.

| output_html | ( | $ | data, |
| $ | query = '' |
||
| ) |
Returns an XHTML checkbox field and with extra locked checkbox
| string | $data | If $data matches yes then checkbox is checked |
| string | $query |
Reimplemented from admin_setting_configcheckbox.
Definition at line 4174 of file adminlib.php.

| write_setting | ( | $ | data | ) |
Sets the value for the setting
Sets the value for the setting to either the yes or no values of the object by comparing $data to yes
| mixed | $data | Gets converted to str for comparison against yes value |
Reimplemented from admin_setting_configcheckbox.
Definition at line 4158 of file adminlib.php.
