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

Public Member Functions | |
| __construct (base_setting $setting) | |
| destroy () | |
| get_name () | |
| get_label () | |
| get_type () | |
| get_attributes () | |
| get_value () | |
| get_static_value () | |
| set_label ($label) | |
| disable () | |
| set_icon (pix_icon $icon) | |
| get_icon () | |
Data Fields | |
| const | NAME_PREFIX = 'setting_' |
Protected Attributes | |
| $name | |
| $label | |
| $attributes = array() | |
| $type | |
| $icon = false | |
| $setting | |
Abstract class used to represent the user interface that a setting has.
Definition at line 34 of file backup_ui_setting.class.php.
| __construct | ( | base_setting $ | setting | ) |
Constructors are sooooo cool
| base_setting | $setting |
Definition at line 73 of file backup_ui_setting.class.php.
| destroy | ( | ) |
Destroy all circular references. It helps PHP 5.2 a lot!
Definition at line 80 of file backup_ui_setting.class.php.
| disable | ( | ) |
Disables the UI for this element
Definition at line 140 of file backup_ui_setting.class.php.
| get_attributes | ( | ) |
Gets the HTML attributes for this item
Definition at line 110 of file backup_ui_setting.class.php.
| get_icon | ( | ) |
Returns the icon to display next to this item, or false if there isn't one.
Definition at line 158 of file backup_ui_setting.class.php.

| get_label | ( | ) |
Gets the name of this item including its prefix
Definition at line 96 of file backup_ui_setting.class.php.

| get_name | ( | ) |
Gets the name of this item including its prefix
Definition at line 89 of file backup_ui_setting.class.php.
| get_static_value | ( | ) |
Gets the value to display in a static quickforms element
Reimplemented in backup_setting_ui_dateselector, backup_setting_ui_select, backup_setting_ui_radio, and backup_setting_ui_checkbox.
Definition at line 124 of file backup_ui_setting.class.php.
| get_type | ( | ) |
Gets the type of this element
Definition at line 103 of file backup_ui_setting.class.php.
| get_value | ( | ) |
Gets the value of this setting
Definition at line 117 of file backup_ui_setting.class.php.

Sets the icon to display next to this item
| pix_icon | $icon |
Definition at line 149 of file backup_ui_setting.class.php.
| set_label | ( | $ | label | ) |
Sets the label
| string | $label |
Definition at line 131 of file backup_ui_setting.class.php.

$attributes = array() [protected] |
Definition at line 53 of file backup_ui_setting.class.php.
$icon = false [protected] |
Definition at line 63 of file backup_ui_setting.class.php.
$label [protected] |
Definition at line 48 of file backup_ui_setting.class.php.
$name [protected] |
Definition at line 43 of file backup_ui_setting.class.php.
$setting [protected] |
Definition at line 68 of file backup_ui_setting.class.php.
$type [protected] |
Reimplemented in backup_setting_ui_select, backup_setting_ui_radio, backup_setting_ui_checkbox, and backup_setting_ui_text.
Definition at line 58 of file backup_ui_setting.class.php.
| const NAME_PREFIX = 'setting_' |
Prefix applied to all inputs/selects
Definition at line 38 of file backup_ui_setting.class.php.