OEModule\PatientTicketing\models\Queue::getOutcomeData PHP Method

getOutcomeData() public method

Get simple data structure of possible outcomes for this Queue.
public getOutcomeData ( boolean $json = true ) : array | string
$json boolean
return array | string
    public function getOutcomeData($json = true)
    {
        $res = array();
        foreach ($this->outcome_queues as $q) {
            $res[] = array('id' => $q->id, 'name' => $q->name);
        }
        if ($json) {
            return \CJSON::encode($res);
        }
        return $res;
    }