auFormFile: Difference between revisions
Appearance
Misterhaan (talk | contribs) New page: {{RightTOC}} FormFile Category:Class Category:PHP The auFormFile class is part of the auLib package. It is defined in the auForm.php file. ;Hierarchy * [[au... |
Misterhaan (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
==Public Functions== | ==Public Functions== | ||
===new auFormFile=== | ===new auFormFile=== | ||
<code>new auFormFile($name, ''$label'', ''$tooltip'', ''$required | <code>new auFormFile($name, ''$label'', ''$tooltip'', ''$required'', ''$width'')</code> | ||
Creates a new file input form field. | Creates a new file input form field. | ||
Line 21: | Line 21: | ||
* ''$tooltip'' = Tooltip text to display when the mouse is over the label. Default is none. | * ''$tooltip'' = Tooltip text to display when the mouse is over the label. Default is none. | ||
* ''$required'' = Whether a value is required in this field. Default is not required. | * ''$required'' = Whether a value is required in this field. Default is not required. | ||
* ''$width'' = Width of the field in characters. Default is browser default. | * ''$width'' = Width of the field in characters. Default is browser default. | ||
Latest revision as of 12:20, 1 May 2008
The auFormFile class is part of the auLib package. It is defined in the auForm.php file.
- Hierarchy
- auFormElement
- auFormField
- auFormFile
- auFormField
Usage
This class is used to add a file input field to a form. Create an object from this class and add it to an auFormContainer object.
Public Functions
new auFormFile
new auFormFile($name, $label, $tooltip, $required, $width)
Creates a new file input form field.
- $name = Name to submit the field as.
- $label = Label to display with the field. Default is blank.
- $tooltip = Tooltip text to display when the mouse is over the label. Default is none.
- $required = Whether a value is required in this field. Default is not required.
- $width = Width of the field in characters. Default is browser default.