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

PhoneNumberField Class Reference
[Collection Fields]

Inheritance diagram for PhoneNumberField:

CollectionField AbstractField Field List of all members.

Detailed Description

Field to display a phone number.

Author:
Scott Peshak
Date:
Date
2006-04-10 12:13:29 -0500 (Mon, 10 Apr 2006)

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

Public Member Functions

 __construct ($name, Form &$parentForm, array $attribs=array())
 Constructor.
 setData ($value)
 Set the field data to the passed value.
 getData ()
 Get the data from this field.
 getSqlImpl ()
 Get SQL string of the data of this form.

Protected Attributes

 $ext = false
 Boolean flag indicating if an extention field should be used.


Member Function Documentation

PhoneNumberField::__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 18 of file phonenumber-field.inc.php.

References CollectionField::add().

PhoneNumberField::getData  ) 
 

Get the data from this field.

Returns:
Current value of the field as a normalized phone number (IE: (555)123-4567 x890 )

Reimplemented from CollectionField.

Definition at line 55 of file phonenumber-field.inc.php.

Referenced by getSqlImpl().

PhoneNumberField::getSqlImpl  ) 
 

Get SQL string of the data of this form.

Returns:
SQL string

Reimplemented from CollectionField.

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

References getData().

PhoneNumberField::setData value  ) 
 

Set the field data to the passed value.

Parameters:
$value Value to set, should be a properly formated phone number (IE: 555-123-4567, (555)123-4567)

Reimplemented from AbstractField.

Definition at line 39 of file phonenumber-field.inc.php.


Member Data Documentation

PhoneNumberField::$ext = false [protected]
 

Boolean flag indicating if an extention field should be used.

Definition at line 10 of file phonenumber-field.inc.php.


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