OEModule\PatientTicketing\controllers\AdminController::actionUpdateQueue PHP Method

actionUpdateQueue() public method

Update the given Queue.
public actionUpdateQueue ( $id )
$id
    public function actionUpdateQueue($id)
    {
        if (!($queue = models\Queue::model()->findByPk($id))) {
            throw new \CHttpException(404, "Queue not found with id {$id}");
        }
        if (!empty($_POST)) {
            $this->saveQueue($queue);
        } else {
            $this->renderPartial('form_queue', array('parent' => null, 'queue' => $queue, 'errors' => null));
        }
    }