Bouncy Melons 0.2
declarative style orm
Public Member Functions | Data Fields
PhoneField Class Reference
Inheritance diagram for PhoneField:
Field IField

Public Member Functions

 beforeSet ($value)
 beforeGet ($value)
 formatPhone ($value)
- Public Member Functions inherited from Field
 __construct ($name, $title=null, $options=array(), $sqlType=null)
 getName ()
 getTitle ()
 getType ()
 getOption ($key)
 isRequired ()
 getSqlType ()
 beforeGet ($value)
 beforeRead ($value)
 beforeSet ($value)
 setOption ($key, $value)

Data Fields

const DEFAULT_SQL_TYPE = "varchar(11)"

Additional Inherited Members

- Protected Attributes inherited from Field
 $options = []

Detailed Description

Definition at line 4 of file PhoneField.php.

Member Function Documentation

beforeGet (   $value)

change field value, for editing it later

Implements IField.

Definition at line 12 of file PhoneField.php.

beforeSet (   $value)

change field value before storing in database, serialize, etc

$nameinitial value
modified value

Implements IField.

Definition at line 7 of file PhoneField.php.

formatPhone (   $value)

Definition at line 17 of file PhoneField.php.

Field Documentation

const DEFAULT_SQL_TYPE = "varchar(11)"

Definition at line 5 of file PhoneField.php.

The documentation for this class was generated from the following file: