raoul2000 / yii2-workflow

A simple workflow engine for Yii2
BSD 3-Clause "New" or "Revised" License
171 stars 48 forks source link

helper function to return all possible statusses? #5

Closed mbetel closed 9 years ago

mbetel commented 9 years ago

I'd love to have a helper function returning an Array with all possible statusses from a workflow (not just the reachable ones) to be used in a filter on a grid or otherwise

raoul2000 commented 9 years ago

Yes, this one is ready to be committed :smile:

raoul2000 commented 9 years ago

done !

cornernote commented 8 years ago

Can you give a bit more detail on how to do this? I couldn't find anything in the guide.

cornernote commented 8 years ago

Found it in another issue, are you able to add this to the guide?

WorkflowHelper::getAllStatusListData(
    $this->model->getWorkflow()->getId(),
    $this->model->getWorkflowSource()
);