OEModule\PatientTicketing\models\Ticket::getInfoData PHP Метод

getInfoData() публичный Метод

Get a data structure containing information about this ticket.
public getInfoData ( boolean $json = true ) : array | string
$json boolean
Результат array | string
    public function getInfoData($json = true)
    {
        $res = array('id' => $this->id, 'patient_name' => $this->patient->getFullName(), 'current_queue_name' => $this->current_queue->name, 'current_queue_id' => $this->current_queue->id, 'patient_id' => $this->patient->id);
        if ($json) {
            return \CJSON::encode($res);
        }
        return $res;
    }