raoul2000 / yii2-workflow

A simple workflow engine for Yii2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

helper function to return all possible statusses?

mbetel opened this issue · comments

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

commented

Yes, this one is ready to be committed 😄

commented

done !

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

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

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