PHP Interface raoul2000\workflow\base\IStatusAccessor

Show file Open project: raoul2000/yii2-workflow

Public Methods

Method Description
commitStatus ( BaseActiveRecord $model ) This method is invoked when the status needs to be saved.
readStatus ( BaseActiveRecord $model ) : string This method is invoked each time a status value must be read.
updateStatus ( BaseActiveRecord $model, Status $status = null ) This method is invoked each time a status value must be updated.

Method Details

commitStatus() public method

This method is invoked when the status needs to be saved.
public commitStatus ( BaseActiveRecord $model )
$model yii\db\BaseActiveRecord

readStatus() public method

This method is invoked each time a status value must be read.
public readStatus ( BaseActiveRecord $model ) : string
$model yii\db\BaseActiveRecord
return string the status Id

updateStatus() public method

Updating a status value differs from actually saving the status in persistent storage (the database).
public updateStatus ( BaseActiveRecord $model, Status $status = null )
$model yii\db\BaseActiveRecord
$status Status