OEModule\PatientTicketing\widgets\TicketAssignOutcome::getOutcomeOptions PHP Method

getOutcomeOptions() public method

public getOutcomeOptions ( )
    public function getOutcomeOptions()
    {
        $res = array('options' => array());
        $models = models\TicketAssignOutcomeOption::model()->findAll();
        foreach ($models as $opt) {
            $res['options'][(string) $opt->id] = array('data-followup' => $opt->followup);
        }
        $res['list_data'] = \CHtml::listData($models, 'id', 'name');
        return $res;
    }