function dispatch() { if ($this->identity()->anonymous()) { throw new k_NotAuthorized(); } return parent::dispatch(); }
function dispatch() { if ($this->identity()->user() != 'ninja') { throw new k_Forbidden(); } return parent::dispatch(); }
function dispatch() { if ($this->getCourse()->get('id') == 0) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $this->article = $this->articles->fetchBySlug($this->name()); if (!$this->article) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $this->underviser = new VIH_Model_Ansat($this->name()); if (!$this->underviser->get('id') or $this->underviser->get('published') == 0) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $tilmelding = $this->getTilmelding(); if (!$tilmelding->get('id') or !$tilmelding->get('navn')) { throw new k_Forbidden(); } return parent::dispatch(); }
function dispatch() { $kursus = new VIH_Model_KortKursus($this->context->name()); if ($kursus->getId() <= 0) { throw new k_Forbidden(); } return parent::dispatch(); }
function dispatch() { $this->questionAnswer = $this->faq->fetchBySlug($this->name()); if (!$this->questionAnswer) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $f*g = new VIH_Model_Fag($this->name()); if (!$f*g->get('id') or $f*g->get('active') != 1 or $f*g->get('published') != 1) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $tilmelding = new VIH_Model_KortKursus_OnlineTilmelding($this->context->name()); if (!$tilmelding->get('id') or !$tilmelding->get('navn')) { throw new k_Forbidden(); } return parent::dispatch(); }
function dispatch() { $tilmelding = VIH_Model_KortKursus_Tilmelding::factory($this->name()); if (!is_object($tilmelding) or !$tilmelding->get('id')) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $this->contact = $this->contacts->fetchByName($this->name()); if (!$this->contact) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $kursus = new VIH_Model_LangtKursus($this->name()); if ($kursus->get("id") == 0) { return new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $tilmelding = $this->getTilmelding(); if ($tilmelding->get('id') == 0) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $kursus = $this->context->getGateway()->findById($this->name()); if (!$kursus->get('kursusnavn') or $kursus->get('dato_slut') < date('Y-m-d') or $kursus->get('published') == 0) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $kursus = new VIH_Model_LangtKursus($this->name()); if (!$kursus->get('id') or $kursus->get('dato_slut') < date('Y-m-d')) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $this->ansat = $this->getAnsat(); if ($this->getAnsat()->get('id') == 0) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { $nyhed = new VIH_News($this->name()); if ($nyhed->get('id') == 0) { throw new k_PageNotFound(); } return parent::dispatch(); }
function dispatch() { return "Dispatching:\n name: '" . $this->name() . "'\n next: '" . $this->next() . "'\n subtype: '" . $this->subtype() . "'\n url: '" . $this->url() . "'\n" . parent::dispatch(); }
function dispatch() { $url = $this->self_url(); $protocol = substr($url, 0, 5); if ($protocol != 'https') { $link = 'https' . substr($url, 4); return new k_SeeOther($link); } return parent::dispatch(); }