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

Public Member Functions

 HTML_QuickForm_link ($elementName=null, $elementLabel=null, $href=null, $text=null, $attributes=null)
 setName ($name)
 getName ()
 setValue ($value)
 getValue ()
 setHref ($href)
 toHtml ()
 getFrozenHtml ()

Data Fields

 $_text = ""

Detailed Description

HTML class for a link type field

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

Definition at line 32 of file link.php.


Member Function Documentation

Returns the value of field without HTML tags (in this case, value is changed to a mask)

Since:
1.0 public
Returns:
string
Exceptions:

Reimplemented from HTML_QuickForm_static.

Definition at line 184 of file link.php.

getName ( )

Returns the element name

Since:
1.0 public
Returns:
string
Exceptions:

Reimplemented from HTML_QuickForm_static.

Definition at line 97 of file link.php.

Here is the call graph for this function:

getValue ( )

Returns the value of the form element

Since:
1.0 public
Returns:
void
Exceptions:

Reimplemented from HTML_QuickForm_element.

Definition at line 130 of file link.php.

HTML_QuickForm_link ( elementName = null,
elementLabel = null,
href = null,
text = null,
attributes = null 
)

Class constructor

Parameters:
string$elementLabel(optional)Link label
string$href(optional)Link href
string$text(optional)Link display text
mixed$attributes(optional)Either a typical HTML attribute string or an associative array
Since:
1.0 public
Returns:
void
Exceptions:

Definition at line 60 of file link.php.

Here is the call graph for this function:

setHref ( href)

Sets the links href

Parameters:
string$href
Since:
1.0 public
Returns:
void
Exceptions:

Definition at line 148 of file link.php.

Here is the call graph for this function:

Here is the caller graph for this function:

setName ( name)

Sets the input field name

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

Reimplemented from HTML_QuickForm_static.

Definition at line 81 of file link.php.

Here is the call graph for this function:

setValue ( value)

Sets value for textarea element

Parameters:
string$valueValue for password element
Since:
1.0 public
Returns:
void
Exceptions:

Reimplemented from HTML_QuickForm_static.

Definition at line 114 of file link.php.

toHtml ( )

Returns the textarea element in HTML

Since:
1.0 public
Returns:
string
Exceptions:

Reimplemented from HTML_QuickForm_static.

Definition at line 164 of file link.php.

Here is the call graph for this function:


Field Documentation

$_text = ""

Reimplemented from HTML_QuickForm_static.

Definition at line 42 of file link.php.


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