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

CheckboxField Class Reference
[Basic Fields]

Inheritance diagram for CheckboxField:

AbstractField Field List of all members.

Detailed Description

Checkbox field.

A single checkbox

Author:
Scott Peshak

Definition at line 8 of file checkbox-field.inc.php.

Public Member Functions

 __construct ($name, Form &$parentForm, array $attribs=array())
 Constructor.
 drawInput ()
 Draw the field.
 validate ()
 Validate the field.

Protected Attributes

 $label = ''


Member Function Documentation

CheckboxField::__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 12 of file checkbox-field.inc.php.

CheckboxField::drawInput  ) 
 

Draw the field.

Implements Field.

Definition at line 34 of file checkbox-field.inc.php.

References AbstractField::extrasAsAttributes().

CheckboxField::validate  ) 
 

Validate the field.

Reimplemented from AbstractField.

Definition at line 48 of file checkbox-field.inc.php.


Member Data Documentation

CheckboxField::$label = '' [protected]
 

Definition at line 10 of file checkbox-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