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


Public Member Functions | |
| HTML_QuickForm_radio ($elementName=null, $elementLabel=null, $text=null, $value=null, $attributes=null) | |
| _generateId () | |
| setChecked ($checked) | |
| getChecked () | |
| toHtml () | |
| getFrozenHtml () | |
| setText ($text) | |
| getText () | |
| onQuickFormEvent ($event, $arg, &$caller) | |
| exportValue (&$submitValues, $assoc=false) | |
Data Fields | |
| $_text = '' | |
HTML class for a radio type element
| _generateId | ( | ) |
Automatically generates and assigns an 'id' attribute for the element.
Currently used to ensure that labels work on radio buttons and checkboxes. Per idea of Alexander Radivanovich.
private
Reimplemented from HTML_QuickForm_element.
Definition at line 73 of file radio.php.

| exportValue | ( | &$ | submitValues, |
| $ | assoc = false |
||
| ) |
Returns the value attribute if the radio is checked, null if it is not
Reimplemented from HTML_QuickForm_input.
Definition at line 245 of file radio.php.

| getChecked | ( | ) |
| getFrozenHtml | ( | ) |
Returns the value of field without HTML tags
Reimplemented from HTML_QuickForm_element.
Reimplemented in MoodleQuickForm_radio.
Definition at line 153 of file radio.php.

| getText | ( | ) |
| HTML_QuickForm_radio | ( | $ | elementName = null, |
| $ | elementLabel = null, |
||
| $ | text = null, |
||
| $ | value = null, |
||
| $ | attributes = null |
||
| ) |
Class constructor
| string | Input field name attribute |
| mixed | Label(s) for a field |
| string | Text to display near the radio |
| string | Input field value |
| mixed | Either a typical HTML attribute string or an associative array |
Definition at line 60 of file radio.php.


| onQuickFormEvent | ( | $ | event, |
| $ | arg, | ||
| &$ | caller | ||
| ) |
Called by HTML_QuickForm whenever form event is made on this element
| string | $event | Name of event |
| mixed | $arg | event arguments |
| object | $caller | calling object |
Reimplemented from HTML_QuickForm_input.
Definition at line 207 of file radio.php.

| setChecked | ( | $ | checked | ) |
| setText | ( | $ | text | ) |
| toHtml | ( | ) |
Returns the radio element in HTML
Reimplemented from HTML_QuickForm_input.
Reimplemented in MoodleQuickForm_radio.
Definition at line 131 of file radio.php.
