Drop down form element to select visibility in an activity mod update form.
More...
|
| | __construct ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| | Class constructor.
|
| |
|
| export_for_template (renderer_base $output) |
| |
| | exportValue (&$submitvalues, $assoc=false) |
| | As usual, to get the group's value we access its elements and call their exportValue() methods.
|
| |
| | getElementTemplateType () |
| | Slightly different container template when frozen.
|
| |
| | getHelpButton () |
| | get html for help button
|
| |
| | MoodleQuickForm_modvisible ($elementName=null, $elementLabel=null, $attributes=null, $options=null) |
| | Old syntax of class constructor.
|
| |
| | MoodleQuickForm_select ($elementName=null, $elementLabel=null, $options=null, $attributes=null) |
| | Old syntax of class constructor.
|
| |
| | onQuickFormEvent ($event, $arg, &$caller) |
| | Called by HTML_QuickForm whenever form event is made on this element.
|
| |
| | removeOption ($value) |
| | Removes an OPTION from the SELECT.
|
| |
|
| removeOptions () |
| | Removes all OPTIONs from the SELECT.
|
| |
| | setHiddenLabel ($hiddenLabel) |
| | Sets label to be hidden.
|
| |
| | toHtml () |
| | Returns HTML for select form element.
|
| |
|
|
string | $_helpbutton ='' |
| | html for help button, if empty then no help
|
| |
|
bool | $_hiddenLabel =false |
| | if true label will be hidden
|
| |
|
int const | HIDE = 0 |
| | activity state: visible=0, visibleoncoursepage=any
|
| |
|
int const | SHOW = 1 |
| | activity state: visible=1, visibleoncoursepage=1
|
| |
|
int const | STEALTH = -1 |
| | activity state: visible=1, visibleoncoursepage=0
|
| |
Drop down form element to select visibility in an activity mod update form.
HTML class for a drop down element to select visibility in an activity mod update form
- Copyright
- 2006 Jamie Pratt me@ja.nosp@m.miep.nosp@m..org
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
| MoodleQuickForm_modvisible::__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 |
| array | $options | ignored |
Reimplemented from MoodleQuickForm_select.
◆ exportValue()
| MoodleQuickForm_modvisible::exportValue |
( |
& | $submitvalues, |
|
|
| $assoc = false ) |
As usual, to get the group's value we access its elements and call their exportValue() methods.
- Parameters
-
| array | $submitvalues | submitted values |
| bool | $assoc | if true the retured value is associated array |
- Return values
-
Reimplemented from MoodleQuickForm_select.
◆ 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_modvisible()
| MoodleQuickForm_modvisible::MoodleQuickForm_modvisible |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null, |
|
|
| $options = null ) |
◆ MoodleQuickForm_select()
| MoodleQuickForm_select::MoodleQuickForm_select |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $options = null, |
|
|
| $attributes = null ) |
|
inherited |
◆ onQuickFormEvent()
| MoodleQuickForm_modvisible::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: