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

Public Member Functions

 getJoinTableName ($list)
 
- 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(11)"
 
const JOIN_VIEW = 1
 
const JOIN_TABLE = 0
 

Additional Inherited Members

- Protected Attributes inherited from Field
 $name
 
 $title
 
 $sqlType
 
 $options = []
 

Detailed Description

for atomatic join another tables or views by id useful options list - slug of linked view model, required jointype - type of join, optional, can be ::JOIN_VIEW or ::JOIN_TABLE (default) example new ($name, $title, ['list'=>VMyLinkedModel::getSlug(),'jointype'=>::JOIN_VIEW]);

Definition at line 13 of file IdField.php.

Member Function Documentation

getJoinTableName (   $list)

Definition at line 18 of file IdField.php.

Field Documentation

const DEFAULT_SQL_TYPE = "int(11)"

Definition at line 14 of file IdField.php.

const JOIN_TABLE = 0

Definition at line 16 of file IdField.php.

const JOIN_VIEW = 1

Definition at line 15 of file IdField.php.


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