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


Public Member Functions | |
| HTML_QuickForm_input ($elementName=null, $elementLabel=null, $attributes=null) | |
| setType ($type) | |
| setName ($name) | |
| getName () | |
| setValue ($value) | |
| getValue () | |
| toHtml () | |
| onQuickFormEvent ($event, $arg, &$caller) | |
| exportValue (&$submitValues, $assoc=false) | |
Base class for input form elements
| exportValue | ( | &$ | submitValues, |
| $ | assoc = false |
||
| ) |
We don't need values from button-type elements (except submit) and files
Reimplemented from HTML_QuickForm_element.
Reimplemented in MoodleQuickForm_rubriceditor, HTML_QuickForm_advcheckbox, HTML_QuickForm_checkbox, HTML_QuickForm_radio, MoodleQuickForm_filepicker, and HTML_QuickForm_submit.
Definition at line 190 of file input.php.

| getName | ( | ) |
Returns the element name
Reimplemented from HTML_QuickForm_element.
Definition at line 96 of file input.php.


| getValue | ( | ) |
Returns the value of the form element
Reimplemented from HTML_QuickForm_element.
Reimplemented in HTML_QuickForm_checkbox, HTML_QuickForm_advcheckbox, and HTML_QuickForm_file.
Definition at line 127 of file input.php.


| HTML_QuickForm_input | ( | $ | elementName = null, |
| $ | elementLabel = null, |
||
| $ | attributes = null |
||
| ) |
Class constructor
| string | Input field name attribute |
| mixed | Label(s) for the input field |
| mixed | Either a typical HTML attribute string or an associative array |
Definition at line 48 of file input.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_element.
Reimplemented in HTML_QuickForm_advcheckbox, HTML_QuickForm_checkbox, HTML_QuickForm_radio, HTML_QuickForm_file, MoodleQuickForm_grading, MoodleQuickForm_checkbox, MoodleQuickForm_file, MoodleQuickForm_cancel, and MoodleQuickForm_submit.
Definition at line 165 of file input.php.

| setName | ( | $ | name | ) |
Sets the input field name
| string | $name | Input field name attribute |
Reimplemented from HTML_QuickForm_element.
Definition at line 81 of file input.php.

| setType | ( | $ | type | ) |
| setValue | ( | $ | value | ) |
Sets the value of the form element
| string | $value | Default value of the form element |
Reimplemented from HTML_QuickForm_element.
Reimplemented in HTML_QuickForm_checkbox, HTML_QuickForm_advcheckbox, and HTML_QuickForm_file.
Definition at line 112 of file input.php.


| toHtml | ( | ) |
Returns the input field in HTML
Reimplemented from HTML_Common.
Reimplemented in HTML_QuickForm_advcheckbox, HTML_QuickForm_radio, HTML_QuickForm_checkbox, HTML_QuickForm_autocomplete, MoodleQuickForm_advcheckbox, MoodleQuickForm_rubriceditor, MoodleQuickForm_grading, MoodleQuickForm_checkbox, MoodleQuickForm_radio, MoodleQuickForm_recaptcha, MoodleQuickForm_filepicker, MoodleQuickForm_passwordunmask, MoodleQuickForm_url, MoodleQuickForm_text, and MoodleQuickForm_submitlink.
Definition at line 142 of file input.php.
