radio type form element
More...
|
| __construct ($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) |
| constructor
|
|
| getElementTemplateType () |
| Slightly different container template when frozen.
|
|
| getFrozenHtml () |
| Returns the disabled field.
|
|
| getHelpButton () |
| get html for help button
|
|
| MoodleQuickForm_radio ($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) |
| Old syntax of class constructor.
|
|
| setHiddenLabel ($hiddenLabel) |
| Sets label to be hidden.
|
|
| toHtml () |
| Returns HTML for advchecbox form element.
|
|
|
string | $_helpbutton ='' |
| html for help button, if empty then no help
|
|
|
bool | $_hiddenLabel = false |
| if true label will be hidden.
|
|
radio type form element
HTML class for a radio type element
- 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_radio::__construct |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $text = null, |
|
|
| $value = null, |
|
|
| $attributes = null ) |
constructor
- Parameters
-
string | $elementName | (optional) name of the radio element |
string | $elementLabel | (optional) label for radio element |
string | $text | (optional) Text to put after the radio element |
string | $value | (optional) default value |
mixed | $attributes | (optional) Either a typical HTML attribute string or an associative array |
◆ getElementTemplateType()
MoodleQuickForm_radio::getElementTemplateType |
( |
| ) |
|
Slightly different container template when frozen.
- Return values
-
◆ getFrozenHtml()
MoodleQuickForm_radio::getFrozenHtml |
( |
| ) |
|
Returns the disabled field.
Accessibility: the return "( )" from parent class is not acceptable for screenreader users, and we DO want a label.
- Return values
-
◆ getHelpButton()
MoodleQuickForm_radio::getHelpButton |
( |
| ) |
|
get html for help button
- Return values
-
string | html for help button |
◆ MoodleQuickForm_radio()
MoodleQuickForm_radio::MoodleQuickForm_radio |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $text = null, |
|
|
| $value = null, |
|
|
| $attributes = null ) |
◆ setHiddenLabel()
MoodleQuickForm_radio::setHiddenLabel |
( |
| $hiddenLabel | ) |
|
Sets label to be hidden.
- Parameters
-
bool | $hiddenLabel | sets if label should be hidden |
◆ toHtml()
MoodleQuickForm_radio::toHtml |
( |
| ) |
|
Returns HTML for advchecbox form element.
- Return values
-
The documentation for this class was generated from the following file: