PHP Class FOF30\Model\DataModel\Behaviour\Created

This behaviour is added to DataModel by default. If you want to remove it you need to do $this->behavioursDispatcher->removeBehaviour('Created');
Since: 3.0
Inheritance: extends FOF30\Event\Observer
Show file Open project: akeeba/fof

Public Methods

Method Description
onBeforeCheck ( DataModel &$model ) Add the created_on and created_by fields in the fieldsSkipChecks list of the model. We expect them to be empty so that we can fill them in through this behaviour.
onBeforeCreate ( DataModel &$model, stdClass &$dataObject )

Method Details

onBeforeCheck() public method

Add the created_on and created_by fields in the fieldsSkipChecks list of the model. We expect them to be empty so that we can fill them in through this behaviour.
public onBeforeCheck ( DataModel &$model )
$model FOF30\Model\DataModel

onBeforeCreate() public method

public onBeforeCreate ( DataModel &$model, stdClass &$dataObject )
$model FOF30\Model\DataModel
$dataObject stdClass