PHP Interface raoul2000\workflow\base\IStatusIdConverter

A status ID converter is dedicated to provide a conversion between status ID which are valid for the SimpleWorkflow behavior, and status ID that can be stored in the configured status column in the underlying table.
See also: StatusIdConverter
Mostrar archivo Open project: raoul2000/yii2-workflow

Public Methods

Method Description
toModelAttribute ( mixed $statusId ) Converts the status ID passed as argument into a value that is compatible with the owner model attribute configured to store the simpleWorkflow status ID.
toSimpleWorkflow ( mixed $statusId ) Converts the status ID passed as argument into a status ID compatible with the simpleWorkflow.

Method Details

toModelAttribute() public method

Converts the status ID passed as argument into a value that is compatible with the owner model attribute configured to store the simpleWorkflow status ID.
public toModelAttribute ( mixed $statusId )
$statusId mixed

toSimpleWorkflow() public method

Converts the status ID passed as argument into a status ID compatible with the simpleWorkflow.
public toSimpleWorkflow ( mixed $statusId )
$statusId mixed