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.
ファイルを表示
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.
toSimpleWorkflow()
public method
Converts the status ID passed as argument into a status ID compatible
with the simpleWorkflow.