|
| __construct ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| Class constructor. More...
|
|
| export_for_template (renderer_base $output) |
| Function to export the renderer data in a format that is suitable for a mustache template. More...
|
|
| exportValue (&$submitValues, $assoc=false) |
| We check the options and return only the values that could have been selected. More...
|
|
| getElementTemplateType () |
| Slightly different container template when frozen. More...
|
|
| getHelpButton () |
| get html for help button More...
|
|
| MoodleQuickForm_select ($elementName=null, $elementLabel=null, $options=null, $attributes=null) |
| Old syntax of class constructor. More...
|
|
| MoodleQuickForm_selectyesno ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| Old syntax of class constructor. More...
|
|
| onQuickFormEvent ($event, $arg, &$caller) |
| Called by HTML_QuickForm whenever form event is made on this element. More...
|
|
| removeOption ($value) |
| Removes an OPTION from the SELECT. More...
|
|
| removeOptions () |
| Removes all OPTIONs from the SELECT.
|
|
| setHiddenLabel ($hiddenLabel) |
| Sets label to be hidden. More...
|
|
| toHtml () |
| Returns HTML for select form element. More...
|
|
|
string | $_helpbutton ='' |
| html for help button, if empty then no help
|
|
bool | $_hiddenLabel =false |
| if true label will be hidden
|
|
◆ __construct()
MoodleQuickForm_selectyesno::__construct |
( |
|
$elementName = null , |
|
|
|
$elementLabel = null , |
|
|
|
$attributes = null , |
|
|
|
$options = null |
|
) |
| |
Class constructor.
- Parameters
-
string | $elementName | Select name attribute |
mixed | $elementLabel | Label(s) for the select |
mixed | $attributes | Either a typical HTML attribute string or an associative array |
mixed | $options | ignored, not used. |
Reimplemented from MoodleQuickForm_select.
◆ export_for_template()
MoodleQuickForm_select::export_for_template |
( |
renderer_base |
$output | ) |
|
|
inherited |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
- No complex types - only stdClass, array, int, string, float, bool
- Any additional info that is required for the template is pre-calculated (e.g. capability checks).
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implements templatable.
Reimplemented in MoodleQuickForm_autocomplete, and MoodleQuickForm_tags.
◆ exportValue()
MoodleQuickForm_select::exportValue |
( |
& |
$submitValues, |
|
|
|
$assoc = false |
|
) |
| |
|
inherited |
◆ getElementTemplateType()
MoodleQuickForm_select::getElementTemplateType |
( |
| ) |
|
|
inherited |
Slightly different container template when frozen.
Don't want to use a label tag with a for attribute in that case for the element label but instead use a div. Templates are defined in renderer constructor.
- Return values
-
◆ getHelpButton()
MoodleQuickForm_select::getHelpButton |
( |
| ) |
|
|
inherited |
get html for help button
- Return values
-
string | html for help button |
◆ MoodleQuickForm_select()
MoodleQuickForm_select::MoodleQuickForm_select |
( |
|
$elementName = null , |
|
|
|
$elementLabel = null , |
|
|
|
$options = null , |
|
|
|
$attributes = null |
|
) |
| |
|
inherited |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ MoodleQuickForm_selectyesno()
MoodleQuickForm_selectyesno::MoodleQuickForm_selectyesno |
( |
|
$elementName = null , |
|
|
|
$elementLabel = null , |
|
|
|
$attributes = null , |
|
|
|
$options = null |
|
) |
| |
Old syntax of class constructor.
Deprecated in PHP7.
- Deprecated:
- since Moodle 3.1
◆ onQuickFormEvent()
MoodleQuickForm_selectyesno::onQuickFormEvent |
( |
|
$event, |
|
|
|
$arg, |
|
|
& |
$caller |
|
) |
| |
Called by HTML_QuickForm whenever form event is made on this element.
- Parameters
-
string | $event | Name of event |
mixed | $arg | event arguments |
object | $caller | calling object |
- Return values
-
◆ removeOption()
MoodleQuickForm_select::removeOption |
( |
|
$value | ) |
|
|
inherited |
Removes an OPTION from the SELECT.
- Parameters
-
string | $value | Value for the OPTION to remove |
- Return values
-
◆ setHiddenLabel()
MoodleQuickForm_select::setHiddenLabel |
( |
|
$hiddenLabel | ) |
|
|
inherited |
Sets label to be hidden.
- Parameters
-
bool | $hiddenLabel | sets if label should be hidden |
◆ toHtml()
MoodleQuickForm_select::toHtml |
( |
| ) |
|
|
inherited |
The documentation for this class was generated from the following file: