コード例 #1
0
ファイル: Index.php プロジェクト: vih/intranet.vih.dk
 function dispatch()
 {
     if ($this->identity()->anonymous()) {
         throw new k_NotAuthorized();
     }
     return parent::dispatch();
 }
コード例 #2
0
ファイル: index.php プロジェクト: RussellDias/konstrukt
 function dispatch()
 {
     if ($this->identity()->user() != 'ninja') {
         throw new k_Forbidden();
     }
     return parent::dispatch();
 }
コード例 #3
0
ファイル: Kursus.php プロジェクト: vih/intranet.vih.dk
 function dispatch()
 {
     if ($this->getCourse()->get('id') == 0) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #4
0
ファイル: entity.php プロジェクト: Tobbe/lsinfo
 function dispatch()
 {
     $this->article = $this->articles->fetchBySlug($this->name());
     if (!$this->article) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #5
0
ファイル: Show.php プロジェクト: vih/vih.dk
 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();
 }
コード例 #6
0
ファイル: Confirm.php プロジェクト: vih/vih.dk
 function dispatch()
 {
     $tilmelding = $this->getTilmelding();
     if (!$tilmelding->get('id') or !$tilmelding->get('navn')) {
         throw new k_Forbidden();
     }
     return parent::dispatch();
 }
コード例 #7
0
ファイル: Venteliste.php プロジェクト: vih/vih.dk
 function dispatch()
 {
     $kursus = new VIH_Model_KortKursus($this->context->name());
     if ($kursus->getId() <= 0) {
         throw new k_Forbidden();
     }
     return parent::dispatch();
 }
コード例 #8
0
ファイル: entity.php プロジェクト: Tobbe/lsinfo
 function dispatch()
 {
     $this->questionAnswer = $this->faq->fetchBySlug($this->name());
     if (!$this->questionAnswer) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #9
0
ファイル: Show.php プロジェクト: vih/vih.dk
 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();
 }
コード例 #10
0
ファイル: Reciept.php プロジェクト: vih/vih.dk
 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();
 }
コード例 #11
0
ファイル: Tilmelding.php プロジェクト: vih/vih.dk
 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();
 }
コード例 #12
0
ファイル: entity.php プロジェクト: harrysame/PHP-MySQL
 function dispatch()
 {
     $this->contact = $this->contacts->fetchByName($this->name());
     if (!$this->contact) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #13
0
ファイル: Show.php プロジェクト: vih/intranet.vih.dk
 function dispatch()
 {
     $kursus = new VIH_Model_LangtKursus($this->name());
     if ($kursus->get("id") == 0) {
         return new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #14
0
ファイル: Show.php プロジェクト: vih/intranet.vih.dk
 function dispatch()
 {
     $tilmelding = $this->getTilmelding();
     if ($tilmelding->get('id') == 0) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #15
0
ファイル: Show.php プロジェクト: vih/vih.dk
 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();
 }
コード例 #16
0
ファイル: Show.php プロジェクト: vih/vih.dk
 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();
 }
コード例 #17
0
ファイル: Show.php プロジェクト: vih/intranet.vih.dk
 function dispatch()
 {
     $this->ansat = $this->getAnsat();
     if ($this->getAnsat()->get('id') == 0) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #18
0
ファイル: Show.php プロジェクト: vih/intranet.vih.dk
 function dispatch()
 {
     $nyhed = new VIH_News($this->name());
     if ($nyhed->get('id') == 0) {
         throw new k_PageNotFound();
     }
     return parent::dispatch();
 }
コード例 #19
0
ファイル: mocks.inc.php プロジェクト: RussellDias/konstrukt
 function dispatch()
 {
     return "Dispatching:\n  name: '" . $this->name() . "'\n  next: '" . $this->next() . "'\n  subtype: '" . $this->subtype() . "'\n  url: '" . $this->url() . "'\n" . parent::dispatch();
 }
コード例 #20
0
ファイル: OnlineBetaling.php プロジェクト: vih/vih.dk
 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();
 }