Jump to content

auFormHTML: Difference between revisions

From auWiki
New page: {{RightTOC}} FormHTML Category:Class Category:PHP The auFormHTML class is part of the auLib package. It is defined in the auForm.php file. ;Hierarchy * [[au...
 
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:


==Usage==
==Usage==
This class is used to add HTML to a form that doesn’t get sent to the server but still displays.  Create an object from this class and add it to an [[auFormContainer]] object.
This class is used to add HTML to a form that doesn’t get sent to the server but still displays.  Create an object from this class and add it to an [[auFormContainer]] object.  This can also be used to add custom fields, but they will have to be validated manually.


==Public Functions==
==Public Functions==
Line 18: Line 18:
* $title= Short text to display in the label column.
* $title= Short text to display in the label column.
* $html= HTML to display in the field column.
* $html= HTML to display in the field column.
===WriteHTML===
<code>WriteHTML</code>
Writes out the HTML for this form element.
===GetLabel===
<code>GetLabel</code>
Gets the label (title) of the element.
* @return = The title of the element.

Latest revision as of 08:38, 23 April 2008

The auFormHTML class is part of the auLib package. It is defined in the auForm.php file.

Hierarchy

Usage

This class is used to add HTML to a form that doesn’t get sent to the server but still displays. Create an object from this class and add it to an auFormContainer object. This can also be used to add custom fields, but they will have to be validated manually.

Public Functions

new auFormHTML

new auFormHTML($title, $html)

Creates a new form HTML element.

  • $title= Short text to display in the label column.
  • $html= HTML to display in the field column.