Moodle  2.2.1
http://www.collinsharper.com
HTML_QuickForm_static Class Reference
Inheritance diagram for HTML_QuickForm_static:
Collaboration diagram for HTML_QuickForm_static:

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

Detailed Description

HTML class for static data

Author:
Wojciech Gdela <eltehaem@poczta.onet.pl> public

Definition at line 30 of file static.php.


Member Function Documentation

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.

Returns the value of field without HTML tags

public

Returns:
string

Reimplemented from HTML_QuickForm_element.

Reimplemented in HTML_QuickForm_link.

Definition at line 142 of file static.php.

Here is the call graph for this function:

getName ( )

Returns the element name

public

Returns:
string

Reimplemented from HTML_QuickForm_element.

Reimplemented in HTML_QuickForm_link.

Definition at line 84 of file static.php.

Here is the call graph for this function:

HTML_QuickForm_static ( elementName = null,
elementLabel = null,
text = null 
)

Class constructor

Parameters:
string$elementLabel(optional)Label
string$text(optional)Display text public
Returns:
void

Definition at line 52 of file static.php.

Here is the call graph for this function:

Here is the caller graph for this function:

onQuickFormEvent ( event,
arg,
&$  caller 
)

Called by HTML_QuickForm whenever form event is made on this element

Parameters:
string$eventName of event
mixed$argevent arguments
object$callercalling object
Since:
1.0 public
Returns:
void
Exceptions:

Reimplemented from HTML_QuickForm_element.

Definition at line 161 of file static.php.

Here is the call graph for this function:

setName ( name)

Sets the element name

Parameters:
string$nameElement name public
Returns:
void

Reimplemented from HTML_QuickForm_element.

Reimplemented in HTML_QuickForm_link.

Definition at line 70 of file static.php.

Here is the call graph for this function:

setText ( text)

Sets the text

Parameters:
string$textpublic
Returns:
void

Definition at line 99 of file static.php.

Here is the caller graph for this function:

setValue ( text)

Sets the text (uses the standard setValue call to emulate a form element.

Parameters:
string$textpublic
Returns:
void

Reimplemented from HTML_QuickForm_element.

Reimplemented in HTML_QuickForm_link.

Definition at line 114 of file static.php.

Here is the call graph for this function:

Here is the caller graph for this function:

toHtml ( )

Returns the static text element in HTML

public

Returns:
string

Reimplemented from HTML_Common.

Reimplemented in HTML_QuickForm_link, and MoodleQuickForm_warning.

Definition at line 128 of file static.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$_text = null

Reimplemented in HTML_QuickForm_link.

Definition at line 39 of file static.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations