public function getAllPatients($limit = 30, $from = 0, $to = 30) { $user = ECPFactory::getUser($this->uid); $patient = self::startPatient(); $patient->setGemId($user->gem_id); $result = Patient::findByExample(self::$db, $patient); return self::resultToArray($result, Patient::getFieldNames()); }
public function dispatch() { //alle opties zijn verzameld, nu gaan we de componenten laden en de juiste informatie meegeven if ($this->state !== "offline") { $this->user = ECPFactory::getUser($this->router->getUserId()); $this->user->setUser($this->router->getUserId()); $this->session->start(); $this->router->dispatch(); //echo $this->session->getState(); $this->state = "dispatched"; } else { $this->setTemplate("offline"); $this->setTemplateData(array('content' => $this->conf->offline_message, 'content-title' => 'Ecareplan Offline')); } }