PHP Class FOF30\Model\DataModel\Behaviour\Modified

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

Public Methods

Method Description
onBeforeCheck ( DataModel &$model ) Add the modified_on and modified_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.
onBeforeUpdate ( DataModel &$model, stdClass &$dataObject )

Method Details

onBeforeCheck() public method

Add the modified_on and modified_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

onBeforeUpdate() public method

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