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

Public Member Functions

 beforeSet ($value)
 beforeGet ($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 = "date"

Additional Inherited Members

- Protected Attributes inherited from Field
 $options = []

Detailed Description


new DateField('mydate', // required
    'My Human Readable Date', // optional
        'format'=>'Y-m-d',// date format to represent as a string, optional
        'default'=>'2000-01-01', // default date value, optional

Definition at line 16 of file DateField.php.

Member Function Documentation

beforeGet (   $value)

change field value, for editing it later

Implements IField.

Definition at line 23 of file DateField.php.

beforeSet (   $value)

change field value before storing in database, serialize, etc

$nameinitial value
modified value

Implements IField.

Definition at line 19 of file DateField.php.

Field Documentation

const DEFAULT_SQL_TYPE = "date"

Definition at line 17 of file DateField.php.

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