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


Public Member Functions | |
| HTML_QuickForm_static ($elementName=null, $elementLabel=null, $text=null) | |
| setName ($name) | |
| getName () | |
| setText ($text) | |
| setValue ($text) | |
| toHtml () | |
| getFrozenHtml () | |
| onQuickFormEvent ($event, $arg, &$caller) | |
| exportValue (&$submitValues, $assoc=false) | |
Data Fields | |
| $_text = null | |
HTML class for static data
Definition at line 30 of file static.php.
| exportValue | ( | &$ | submitValues, |
| $ | assoc = false |
||
| ) |
We override this here because we don't want any values from static elements
Reimplemented from HTML_QuickForm_element.
Definition at line 186 of file static.php.
| getFrozenHtml | ( | ) |
Returns the value of field without HTML tags
public
Reimplemented from HTML_QuickForm_element.
Reimplemented in HTML_QuickForm_link.
Definition at line 142 of file static.php.

| getName | ( | ) |
Returns the element name
public
Reimplemented from HTML_QuickForm_element.
Reimplemented in HTML_QuickForm_link.
Definition at line 84 of file static.php.

| HTML_QuickForm_static | ( | $ | elementName = null, |
| $ | elementLabel = null, |
||
| $ | text = null |
||
| ) |
Class constructor
| string | $elementLabel | (optional)Label |
| string | $text | (optional)Display text public |
Definition at line 52 of file static.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 161 of file static.php.

| setName | ( | $ | name | ) |
Sets the element name
| string | $name | Element name public |
Reimplemented from HTML_QuickForm_element.
Reimplemented in HTML_QuickForm_link.
Definition at line 70 of file static.php.

| setText | ( | $ | text | ) |
Sets the text
| string | $text | public |
Definition at line 99 of file static.php.

| setValue | ( | $ | text | ) |
Sets the text (uses the standard setValue call to emulate a form element.
| string | $text | public |
Reimplemented from HTML_QuickForm_element.
Reimplemented in HTML_QuickForm_link.
Definition at line 114 of file static.php.


| toHtml | ( | ) |
Returns the static text element in HTML
public
Reimplemented from HTML_Common.
Reimplemented in HTML_QuickForm_link, and MoodleQuickForm_warning.
Definition at line 128 of file static.php.


| $_text = null |
Reimplemented in HTML_QuickForm_link.
Definition at line 39 of file static.php.