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


Public Member Functions | |
| __construct ($name, $visiblename, $description, $defaultsetting, $lowercase=false) | |
| write_setting ($data) | |
Definition at line 30 of file settingslib.php.
| __construct | ( | $ | name, |
| $ | visiblename, | ||
| $ | description, | ||
| $ | defaultsetting, | ||
| $ | lowercase = false |
||
| ) |
Constructor: uses parent::__construct
| 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 |
| string | $defaultsetting | default value for the setting |
| boolean | $lowercase | if true, lowercase the value before writing it to the db. |
Definition at line 43 of file settingslib.php.
| write_setting | ( | $ | data | ) |
Saves the setting(s) provided in $data
| array | $data | An array of data, if not array returns empty str |
Reimplemented from admin_setting_configtext.
Definition at line 54 of file settingslib.php.
