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


Public Member Functions | |
| __construct ($name, $visiblename, $description, $defaultsetting, $choices) | |
| get_setting () | |
| write_setting ($data) | |
| output_html ($data, $query='') | |
Data Fields | |
| $choices | |
Grade category settings
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Definition at line 4449 of file adminlib.php.
| __construct | ( | $ | name, |
| $ | visiblename, | ||
| $ | description, | ||
| $ | defaultsetting, | ||
| $ | choices | ||
| ) |
Sets choices and calls parent::__construct with passed arguments
| string | $name | |
| string | $visiblename | |
| string | $description | |
| mixed | $defaultsetting | string or array depending on implementation |
| array | $choices | An array of choices for the control |
Definition at line 4461 of file adminlib.php.
| get_setting | ( | ) |
Return the current setting(s) array
Reimplemented from admin_setting.
Definition at line 4471 of file adminlib.php.

| output_html | ( | $ | data, |
| $ | query = '' |
||
| ) |
Return XHTML to display the field and wrapping div
| array | $data | Associative array of value=>xx, forced=>xx, adv=>xx |
| string | $query |
Reimplemented from admin_setting.
Definition at line 4535 of file adminlib.php.

| write_setting | ( | $ | data | ) |
Save the new settings passed in $data
| array | $data | Associative array of value=>xx, forced=>xx, adv=>xx |
Reimplemented from admin_setting.
Definition at line 4495 of file adminlib.php.

| $choices |
Definition at line 4451 of file adminlib.php.