Bouncy Melons 0.2
declarative style orm
Public Member Functions
IField Interface Reference
Inheritance diagram for IField:
Field BoolField DateField DatetimeField IdField IntField PhoneField SetField StringField TextField TimeField

Public Member Functions

 __construct ($name, $title, $options=[], $sqlType=null)
 
 getName ()
 
 setOption ($key, $value)
 
 getOption ($key)
 
 beforeSet ($value)
 
 beforeRead ($value)
 
 beforeGet ($value)
 

Detailed Description

all fields should be compatible with this interface

Definition at line 8 of file IField.php.

Constructor & Destructor Documentation

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

Implemented in Field, and SetField.

Member Function Documentation

beforeGet (   $value)

change field value, for editing it later

Implemented in Field, SetField, DateField, DatetimeField, PhoneField, and TimeField.

beforeRead (   $value)

change field value, for proper display in nice way, unserialize, etc

Implemented in Field.

beforeSet (   $value)

change field value before storing in database, serialize, etc

Parameters
$nameinitial value
Returns
modified value

Implemented in Field, DateField, BoolField, DatetimeField, TimeField, and PhoneField.

getName ( )

Implemented in Field.

getOption (   $key)
Parameters
$keyString option name
Returns
option value

Implemented in Field.

setOption (   $key,
  $value 
)

change field-specific option

Parameters
$keyString option name
$valueString new value

Implemented in Field.


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