Constructor.
- Parameters:
-
| $name | Field name |
| $parentForm | Form object that the field belongs to. |
| $attribs | Array of extra attributes. Any non special key values will simply be output in the HTML of the field. Special keys include:
value Sets a default value for the fieldrequired If true then the field is "required" (will not validate with an empty value)errorMessage Message to display if an error is encountered during validation.regExp Regular expression to use for validation. The special values of number & float can be used. Inheirited fields may define additional special keys as needed.
|
Reimplemented from AbstractField.
Definition at line 9 of file email-field.inc.php. |