Class ChangeStatusAction
Action change status Workflow
- yii\base\Action
- raoul2000\workflow\actions\ChangeStatusAction
Namespace: raoul2000\workflow\actions
Author: Angel (Faryshta) Guevara aguevara@tecnocen.com
Author: Carlos (neverabe) Llamosas carlos@tecnocen.com
Author: Alejandro (seether69) Marquez amarquez@tecnocen.com
Located at actions/ChangeStatusAction.php
Author: Angel (Faryshta) Guevara aguevara@tecnocen.com
Author: Carlos (neverabe) Llamosas carlos@tecnocen.com
Author: Alejandro (seether69) Marquez amarquez@tecnocen.com
Located at actions/ChangeStatusAction.php
Methods summary
public
|
|
public
closure
|
#
run( integer $id, string $status )
Runs this action with the specified parameters. This method is mainly invoked by the controller |
protected
The
|
#
findModel( integer $id )
Finds the model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown. |
protected
closure
|
Properties summary
public
callable
|
$findModel
used to find the model to be updated. Must have signature function ($id); Where - id: mixed the param to be searched as model. and returns an ActiveRecord instance.
or throw |
|
public
callable
|
$response
method to handle the response for the user. Must have signature function ($changedStatus, $model) Where - $changedStatus: boolean if the status were changed correctly - $model: ActiveRecord the model which was updated. With a mixed return depending on the controller. |