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

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)

Detailed Description

Base class for input form elements

Author:
Adam Daniel <adaniel1@eesus.jnj.com>
Bertrand Mansion <bmansion@mamasam.com>
Version:
1.0
Since:
PHP4.04pl1 public

Definition at line 34 of file input.php.


Member Function Documentation

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.

Here is the call graph for this function:

getName ( )

Returns the element name

Since:
1.0 public
Returns:
string

Reimplemented from HTML_QuickForm_element.

Definition at line 96 of file input.php.

Here is the call graph for this function:

Here is the caller graph for this function:

getValue ( )

Returns the value of the form element

Since:
1.0 public
Returns:
string

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.

Here is the call graph for this function:

Here is the caller graph for this function:

HTML_QuickForm_input ( elementName = null,
elementLabel = null,
attributes = null 
)

Class constructor

Parameters:
stringInput field name attribute
mixedLabel(s) for the input field
mixedEither a typical HTML attribute string or an associative array
Since:
1.0 public
Returns:
void

Definition at line 48 of file input.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.

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.

Here is the call graph for this function:

setName ( name)

Sets the input field name

Parameters:
string$nameInput field name attribute
Since:
1.0 public
Returns:
void

Reimplemented from HTML_QuickForm_element.

Definition at line 81 of file input.php.

Here is the call graph for this function:

setType ( type)

Sets the element type

Parameters:
string$typeElement type
Since:
1.0 public
Returns:
void

Definition at line 64 of file input.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setValue ( value)

Sets the value of the form element

Parameters:
string$valueDefault value of the form element
Since:
1.0 public
Returns:
void

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.

Here is the call graph for this function:

Here is the caller graph for this function:


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