Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

EmailField Class Reference
[Basic Fields]

Inheritance diagram for EmailField:

TextField AbstractField Field List of all members.

Detailed Description

Simple email field w/ validation.

Author:
Zach Smith

Definition at line 7 of file email-field.inc.php.

Public Member Functions

 __construct ($name, Form &$parentForm, array $attribs=array())
 Constructor.


Member Function Documentation

EmailField::__construct name,
Form &$  parentForm,
array $  attribs = array()
 

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 field
  • required 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.


The documentation for this class was generated from the following file:
Generated on Fri Oct 27 12:26:41 2006 for BaseJumper by doxygen 1.3.9.1