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


Public Member Functions | |
| HTML_QuickForm_xbutton ($elementName=null, $elementContent=null, $attributes=null) | |
| toHtml () | |
| getFrozenHtml () | |
| freeze () | |
| setName ($name) | |
| getName () | |
| setValue ($value) | |
| getValue () | |
| setContent ($content) | |
| onQuickFormEvent ($event, $arg, &$caller) | |
| exportValue (&$submitValues, $assoc=false) | |
Data Fields | |
| $_content | |
| exportValue | ( | &$ | submitValues, |
| $ | assoc = false |
||
| ) |
Returns a 'safe' element's value
The value is only returned if the button's type is "submit" and if this particlular button was clicked
Reimplemented from HTML_QuickForm_element.
Definition at line 136 of file xbutton.php.

| freeze | ( | ) |
Freeze the element so that only its value is returned
public
Reimplemented from HTML_QuickForm_element.
Definition at line 68 of file xbutton.php.
| getFrozenHtml | ( | ) |
Returns the value of field without HTML tags
Reimplemented from HTML_QuickForm_element.
Definition at line 62 of file xbutton.php.

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

| getValue | ( | ) |
Returns the value of the form element
Reimplemented from HTML_QuickForm_element.
Definition at line 96 of file xbutton.php.

| HTML_QuickForm_xbutton | ( | $ | elementName = null, |
| $ | elementContent = null, |
||
| $ | attributes = null |
||
| ) |
Class constructor
| string | Button name |
| string | Button content (HTML to add between <button></button> tags) |
| mixed | Either a typical HTML attribute string or an associative array public |
Definition at line 47 of file xbutton.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.
Definition at line 113 of file xbutton.php.

| setContent | ( | $ | content | ) |
Sets the contents of the button element
| string | Button content (HTML to add between <button></button> tags) |
Definition at line 107 of file xbutton.php.

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

| setValue | ( | $ | value | ) |
Sets the value of the form element
| string | $value | Default value of the form element |
Reimplemented from HTML_QuickForm_element.
Definition at line 88 of file xbutton.php.


| toHtml | ( | ) |
Abstract method. Must be extended to return the objects HTML
public
Reimplemented from HTML_Common.
Definition at line 56 of file xbutton.php.


| $_content |
Definition at line 37 of file xbutton.php.