PHP Interface raoul2000\workflow\base\IStatusAccessor

Afficher le fichier Open project: raoul2000/yii2-workflow

Méthodes publiques

Méthode 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 méthode

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

readStatus() public méthode

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

updateStatus() public méthode

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