OEModule\PatientTicketing\models\QueueSet::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OphTrOperationnote_GlaucomaTube_PlatePosition
return OphTrOperationnote_GlaucomaTube_PlatePosition the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Example #1
0
 /**
  * Generates an HTML list layout of the given Queue and its Outcome Queues.
  *
  * @param $id
  *
  * @throws \CHttpException
  */
 public function actionLoadQueueNav($id)
 {
     if (!($queue = models\Queue::model()->findByPk((int) $id))) {
         throw new \CHttpException(404, "Queue not found with id {$id}");
     }
     $root = $queue->getRootQueue();
     if (is_array($root)) {
         throw new \CHttpException(501, "Don't currently support queues with multiple roots");
     }
     $queueset = models\QueueSet::model()->findByAttributes(array('initial_queue_id' => $root->id));
     $resp = array('rootid' => $root->id, 'queuesetid' => $queueset->id, 'nav' => $this->renderPartial('queue_nav_item', array('queueset' => $queueset, 'queue' => $root), true));
     echo \CJSON::encode($resp);
 }
All Usage Examples Of OEModule\PatientTicketing\models\QueueSet::model