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


Public Member Functions | |
| __construct (backup_setting $setting, $label=null, array $attributes=null, array $options=null) | |
| get_element_properties (base_task $task=null, renderer_base $output=null) | |
| apply_options (array $properties) | |
| get_label (base_task $task=null) | |
| is_changeable () | |
Static Public Member Functions | |
| static | make (backup_setting $setting, $type, $label, array $attributes=null, array $options=null) |
Protected Attributes | |
| $options = array() | |
Abstract class to represent the user interface backup settings have
Definition at line 172 of file backup_ui_setting.class.php.
| __construct | ( | backup_setting $ | setting, |
| $ | label = null, |
||
| array $ | attributes = null, |
||
| array $ | options = null |
||
| ) |
JAC... Just Another Constructor
| backup_setting | $setting | |
| string | null | $label | The label to display with the setting ui |
| array | null | $attributes | Array of HTML attributes to apply to the element |
| array | null | $options | Array of options to apply to the setting ui object |
Definition at line 187 of file backup_ui_setting.class.php.

| apply_options | ( | array $ | properties | ) |
Applies config options to a given properties array and then returns it
| array | $properties |
Definition at line 250 of file backup_ui_setting.class.php.

| get_element_properties | ( | base_task $ | task = null, |
| renderer_base $ | output = null |
||
| ) | [abstract] |
Get element properties that can be used to make a quickform element
Reimplemented in backup_setting_ui_dateselector, backup_setting_ui_select, backup_setting_ui_radio, backup_setting_ui_checkbox, and backup_setting_ui_text.
Gets the label for this item
| backup_task | null | $task | Optional, if provided and the setting is an include $task is used to set the setting label |
Definition at line 262 of file backup_ui_setting.class.php.
| is_changeable | ( | ) |
Returns true if the setting is changeable.
A setting is changeable if it meets either of the two following conditions.
1. The setting is not locked 2. The setting is locked but only by settings that are of the same level (same page)
Condition 2 is really why we have this function
Reimplemented in backup_setting_ui_select, and backup_setting_ui_checkbox.
Definition at line 286 of file backup_ui_setting.class.php.
| static make | ( | backup_setting $ | setting, |
| $ | type, | ||
| $ | label, | ||
| array $ | attributes = null, |
||
| array $ | options = null |
||
| ) | [static, final] |
Creates a new backup setting ui based on the setting it is given
Throws an exception if an invalid type is provided.
| backup_setting | $setting | |
| int | $type | The backup_setting UI type. One of backup_setting::UI_*; |
| string | $label | The label to display with the setting ui |
| array | $attributes | Array of HTML attributes to apply to the element |
| array | $options | Array of options to apply to the setting ui object |
Definition at line 225 of file backup_ui_setting.class.php.

$options = array() [protected] |
Definition at line 177 of file backup_ui_setting.class.php.