this class provides helper methods for the simpleWorkflow behavior
static nextStatuslistData |
( |
|
$model, |
|
|
|
$options = array() |
|
) |
| |
|
static |
Returns the list of all statuses that can be reached from current status of the model passed as argument. The returned array is in the form suitable for dropDownList and listBox:
array(
'statusId' => 'status label',
'status Id2' => 'status label 2',
etc ...
)
Use the $options argument to speficy following options :
-
prompt : specifies the prompt text shown as the first list option. Its value is empty. Note, the prompt text will NOT be HTML-encoded
-
includeCurrent : boolean, if TRUE (default) the current model status is included in the list, otherwise current model status is not inserted in the returned array.
-
exclude : array, list of statuses that should not be inserted in the returned array
Note that each status label is html encode by default.
- Parameters
-
CModel | $model | the data model attaching a simpleWorkflow behavior |
array | $options | additional options |
- Returns
- array the list data that can be used in dropDownList and listBox