OEModule\PatientTicketing\controllers\DefaultController::actionGetTicketTableRow PHP Method

actionGetTicketTableRow() public method

Generate individual row for the given Ticket id.
public actionGetTicketTableRow ( $id )
$id
    public function actionGetTicketTableRow($id)
    {
        if (!($ticket = models\Ticket::model()->with('current_queue')->findByPk($id))) {
            throw new \CHttpException(404, 'Invalid ticket id.');
        }
        $qs_svc = Yii::app()->service->getService(self::$QUEUESET_SERVICE);
        $queueset = $qs_svc->getQueueSetForTicket($ticket->id);
        $can_process = $qs_svc->isQueueSetPermissionedForUser($queueset, Yii::app()->user->id);
        $this->renderPartial('_ticketlist_row', array('ticket' => $ticket, 'can_process' => $can_process), false, false);
    }