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

Public Member Functions

 __construct ($name, $title=null, $options=array(), $sqlType=null)
 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 = "tinyint"

Additional Inherited Members

- Protected Attributes inherited from Field
 $options = []

Detailed Description

'set' is required paramater for this field, example: new \bm\SetField('melons',null,['set'=>[ self::TITS => 'Titties!', self::BOOBS => 'Boobies!', ]])

Definition at line 14 of file SetField.php.

Constructor & Destructor Documentation

__construct (   $name,
  $title = null,
  $options = array(),
  $sqlType = null 
$nameString lowercase
$optionsArray field specific options
$sqlTypeString type of column that should be used in sql table

Implements IField.

Definition at line 18 of file SetField.php.

Member Function Documentation

beforeGet (   $value)

change field value, for editing it later

Implements IField.

Definition at line 29 of file SetField.php.

Field Documentation

const DEFAULT_SQL_TYPE = "tinyint"

Definition at line 16 of file SetField.php.

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