rapila
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AttributableBehaviour Class Reference
Inheritance diagram for AttributableBehaviour:

Public Member Functions

 modifyTable ()
 
 preUpdate ()
 
 preInsert ()
 
 objectMethods ($builder)
 

Protected Member Functions

 getColumnSetter ($column)
 

Protected Attributes

 $parameters
 

Member Function Documentation

AttributableBehaviour::getColumnSetter (   $column)
protected

Get the setter of one of the columns of the behavior

Parameters
string$columnOne of the behavior colums, 'create_column' or 'update_column'
Returns
string The related setter, 'setCreatedBy' or 'setUpdatedBy'
AttributableBehaviour::modifyTable ( )

Add the create_column and update_columns to the current table

AttributableBehaviour::preInsert ( )

Add code in ObjectBuilder::preInsert

Returns
string The code to put at the hook
AttributableBehaviour::preUpdate ( )

Add code in ObjectBuilder::preUpdate

Returns
string The code to put at the hook

Member Data Documentation

AttributableBehaviour::$parameters
protected
Initial value:
= array(
'create_column' => 'created_by',
'update_column' => 'updated_by'
)

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