Bouncy Melons 0.2
declarative style orm
Public Member Functions | Data Fields | Protected Attributes
Single Class Reference
Inheritance diagram for Single:
ISingle AutoSingle WineBottle

Public Member Functions

 declareFields ()
 
 getFields ()
 
 getTitleField ()
 
 getFieldByName ($name)
 
 setData ($data)
 
 getData ()
 
 getDataForSave ()
 
 save ()
 
 remove ()
 
 get ($fieldName)
 
 getAll ()
 
 getRaw ($fieldName)
 
 set ($fieldName, $value)
 
 getId ()
 
 setId ($id)
 
 createTableIfNeeded ()
 
 getTableName ()
 
 getSlug ()
 
 createTable ()
 
 alterTable ()
 
 addField ($field)
 
 updateFieldType ($field)
 
 getBm ()
 
 setBm (BouncyMelons $bm)
 

Data Fields

const TITLE = 'title'
 

Protected Attributes

 $data
 
 $bm
 

Detailed Description

Examples:
single.php.

Definition at line 10 of file Single.php.

Member Function Documentation

addField (   $field)

Definition at line 223 of file Single.php.

alterTable ( )

Definition at line 203 of file Single.php.

createTable ( )

Definition at line 186 of file Single.php.

createTableIfNeeded ( )

Definition at line 171 of file Single.php.

declareFields ( )
abstract
get (   $fieldName)
Returns
column value

Implements ISingle.

Definition at line 126 of file Single.php.

getAll ( )
Returns
array of all field values

Definition at line 134 of file Single.php.

getBm ( )

Implements ISingle.

Definition at line 245 of file Single.php.

getData ( )

Definition at line 73 of file Single.php.

getDataForSave ( )

Definition at line 77 of file Single.php.

getFieldByName (   $name)
Parameters
String$name
Returns
IField

Definition at line 58 of file Single.php.

getFields ( )
Returns
array of IField

Definition at line 26 of file Single.php.

getId ( )
Returns
int id

Implements ISingle.

Definition at line 163 of file Single.php.

getRaw (   $fieldName)

Definition at line 149 of file Single.php.

getSlug ( )

Definition at line 182 of file Single.php.

getTableName ( )

Definition at line 178 of file Single.php.

getTitleField ( )
Returns
IField which sould be associated with title

Definition at line 44 of file Single.php.

remove ( )

remove this object from database

Implements ISingle.

Definition at line 121 of file Single.php.

save ( )

store this object in database

Implements ISingle.

Definition at line 91 of file Single.php.

set (   $fieldName,
  $value 
)

Definition at line 153 of file Single.php.

setBm ( BouncyMelons  $bm)

Implements ISingle.

Definition at line 252 of file Single.php.

setData (   $data)
Parameters
Array$dataassociative array of new values ['param1'=>'value1','param2'=>'value2']

Implements ISingle.

Definition at line 67 of file Single.php.

setId (   $id)

Definition at line 167 of file Single.php.

updateFieldType (   $field)

Definition at line 234 of file Single.php.

Field Documentation

$bm
protected

Definition at line 19 of file Single.php.

$data
protected

Definition at line 14 of file Single.php.

const TITLE = 'title'

Definition at line 12 of file Single.php.


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