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

SSNField Class Reference
[Collection Fields]

Inheritance diagram for SSNField:

CollectionField AbstractField Field List of all members.

Detailed Description

Field to display a US Social Security Number.

Author:
Scott Peshak
Date:
Date
2006-04-11 01:33:17 -0500 (Tue, 11 Apr 2006)

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

Public Member Functions

 __construct ($name, Form &$parentForm, array $attribs=array())
 Constructor.
 validate ()
 Check the value for validity.
 getData ()
 Get the data for this field.
 setData ($data)
 Set the data for the field.
 getSqlImpl ()
 Get SQL string.


Member Function Documentation

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

Constructor.

Parameters:
$name Name of field
$parentForm Form object that the field belongs to.
$attribs Array of extra attributes.

Reimplemented from CollectionField.

Definition at line 16 of file ssn-field.inc.php.

SSNField::getData  ) 
 

Get the data for this field.

Returns:
Current data

Reimplemented from CollectionField.

Definition at line 53 of file ssn-field.inc.php.

Referenced by getSqlImpl().

SSNField::getSqlImpl  ) 
 

Get SQL string.

Reimplemented from CollectionField.

Definition at line 85 of file ssn-field.inc.php.

References getData().

SSNField::setData data  ) 
 

Set the data for the field.

Parameters:
$data Value to set

Reimplemented from AbstractField.

Definition at line 69 of file ssn-field.inc.php.

SSNField::validate  ) 
 

Check the value for validity.

Returns:
Boolean true if the value seems to be a valid SSN, false otherwise

Reimplemented from CollectionField.

Definition at line 35 of file ssn-field.inc.php.

References CollectionField::allFieldsHaveData(), and CollectionField::noFieldsHaveData().


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