Generator for text input fields.
More...
|
| Length ($NewVal=NULL) |
| Get or set the display length for this field. More...
|
|
| MaxLength ($NewVal=NULL) |
| Get or set the maximum input length for this field. More...
|
|
Generator for text input fields.
Definition at line 14 of file TextFormField.php.
TextFormField::__construct |
( |
|
$Name, |
|
|
|
$IsRequired, |
|
|
|
$Label, |
|
|
|
$Length, |
|
|
|
$MaxLength, |
|
|
|
$ValidFunc = NULL , |
|
|
|
$ValidMsgs = NULL |
|
) |
| |
Object Constructor.
- Parameters
-
string | $Name | Internal name for this field, used in html. |
bool | $IsRequired | Whether or not the field is required. |
string | $Label | Display name for this field, shown to user. |
int | $Length | Length of the display box. |
int | $MaxLength | The maximum allowed entry size. |
callback | $ValidFunc | A function to check this field for valid input. (OPTIONAL) |
array | $ValidMsgs | An array of error messages which should correspond to the error codes issued by ValidFunc. (OPTIONAL) |
Definition at line 34 of file TextFormField.php.
TextFormField::Length |
( |
|
$NewVal = NULL | ) |
|
Get or set the display length for this field.
- Parameters
-
int | $NewVal | New Length. (OPTIONAL) |
- Returns
- The current length
Definition at line 54 of file TextFormField.php.
TextFormField::MaxLength |
( |
|
$NewVal = NULL | ) |
|
Get or set the maximum input length for this field.
- Parameters
-
int | $NewVal | New max length. (OPTIONAL) |
- Returns
- The current max input length
Definition at line 64 of file TextFormField.php.
TextFormField::PrintInput |
( |
|
$DisplayErrorIndicator = FALSE | ) |
|
Generate HTML for this object.
- Parameters
-
bool | $DisplayErrorIndicator | Whether to display error indicator. (OPTIONAL) |
Definition at line 78 of file TextFormField.php.
The documentation for this class was generated from the following file: