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

Public Member Functions

 beforeSet ($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 = "int(1)"

Additional Inherited Members

- Protected Attributes inherited from Field
 $options = []

Detailed Description

handy for <input type="checkbox"/>

Definition at line 8 of file BoolField.php.

Member Function Documentation

beforeSet (   $value)

change field value before storing in database, serialize, etc

$nameinitial value
modified value

Implements IField.

Definition at line 12 of file BoolField.php.

Field Documentation

const DEFAULT_SQL_TYPE = "int(1)"

Definition at line 10 of file BoolField.php.

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