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

IpAddressField Class Reference
[Collection Fields]

Inheritance diagram for IpAddressField:

CollectionField AbstractField Field List of all members.

Detailed Description

Field to display a Internet Protocol (IP) address.

Author:
Scott Peshak
Date:
Date
2006-05-07 22:09:30 -0500 (Sun, 07 May 2006)

Definition at line 8 of file ipaddress-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 the field.
 setData ($data)
 Set the data for the field.
 getSqlImpl ()
 Get SQL string.


Member Function Documentation

IpAddressField::__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 ipaddress-field.inc.php.

IpAddressField::getData  ) 
 

Get the data for the field.

Returns:
Current data

Reimplemented from CollectionField.

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

Referenced by getSqlImpl().

IpAddressField::getSqlImpl  ) 
 

Get SQL string.

Reimplemented from CollectionField.

Definition at line 96 of file ipaddress-field.inc.php.

References getData().

IpAddressField::setData data  ) 
 

Set the data for the field.

Parameters:
$data Value to set

Reimplemented from AbstractField.

Definition at line 70 of file ipaddress-field.inc.php.

IpAddressField::validate  ) 
 

Check the value for validity.

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

Reimplemented from CollectionField.

Definition at line 36 of file ipaddress-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:41 2006 for BaseJumper by doxygen 1.3.9.1