當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Schedule::is_in_time方法代碼示例

本文整理匯總了PHP中Schedule::is_in_time方法的典型用法代碼示例。如果您正苦於以下問題:PHP Schedule::is_in_time方法的具體用法?PHP Schedule::is_in_time怎麽用?PHP Schedule::is_in_time使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Schedule的用法示例。


在下文中一共展示了Schedule::is_in_time方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: thanksAction

 public function thanksAction()
 {
     try {
         $schedule = new Schedule();
         $is_able_to_register = $schedule->is_in_time('regist', $this->current_time);
         $is_able_to_post_impression = $schedule->is_in_time('impre', $this->current_time);
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
     $this->view->assign('is_able_to_register', $is_able_to_register);
     $this->view->assign('is_able_to_post_impression', $is_able_to_post_impression);
     $this->view->assign('root_url', ROOT_URL);
     $this->view->assign('head', 'Registration is Completed.');
     $this->view->assign('msg', 'あなたの作品登録を受け付けました');
     $this->view->display('thanks.tpl');
 }
開發者ID:ktanifuji,項目名稱:gr3,代碼行數:16,代碼來源:RegistrationController.php

示例2: thanksAction

 public function thanksAction()
 {
     try {
         $schedule = new Schedule();
         $is_able_to_register = $schedule->is_in_time('regist', $this->current_time);
         $is_able_to_post_impression = $schedule->is_in_time('impre', $this->current_time);
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
     $bms_no = $this->request->getParam('0');
     $this->view->assign('head', 'Impression is Completed');
     $this->view->assign('msg', "あなたのインプレッションを受け付けました。<br><a href=\"" . ROOT_URL . "/detail/view/{$bms_no}/\">作品詳細に戻る</a>");
     $this->view->assign('is_able_to_register', $is_able_to_register);
     $this->view->assign('is_able_to_post_impression', $is_able_to_post_impression);
     $this->view->assign('root_url', ROOT_URL);
     $this->view->display('thanks.tpl');
 }
開發者ID:ktanifuji,項目名稱:gr3,代碼行數:17,代碼來源:DetailController.php

示例3: indexAction

 public function indexAction()
 {
     try {
         $schedule = new Schedule();
         $is_able_to_register = $schedule->is_in_time('regist', $this->current_time);
         if ($is_able_to_register) {
             $this->showIndexPage($schedule);
         } else {
             $this->showPreIndexPage($schedule);
         }
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }
開發者ID:ktanifuji,項目名稱:gr3,代碼行數:14,代碼來源:IndexController.php

示例4: entryAction

 public function entryAction()
 {
     try {
         if (!$this->request->getPost()) {
             throw new Exception('こらっ');
         }
         $schedule = new Schedule();
         $is_able_to_post_genre = $schedule->is_in_time('genre', $this->current_time);
         if ($is_able_to_post_genre) {
             // ジャンルデータを登録
             $genre = new Genre();
             $genre->add($this->request->getPost(), $this->current_time, $this->ip, $this->host);
             header("Location: " . ROOT_URL . "/genre/thanks/");
         } else {
             throw new Exception('ジャンル応募期間ではありません');
         }
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }
開發者ID:ktanifuji,項目名稱:gr3,代碼行數:20,代碼來源:GenreController.php

示例5: entryAction

 public function entryAction()
 {
     try {
         if (!$this->request->getPost()) {
             throw new Exception('こらっ');
         }
         $schedule = new Schedule();
         $is_able_to_entry = $schedule->is_in_time('entry', $this->current_time);
         if ($is_able_to_entry) {
             // 參加表明データを登録
             $entry = new Entry();
             $entry->add($this->request->getPost(), $this->current_time, $this->ip, $this->host);
             header("Location: " . ROOT_URL . "/entry/thanks/");
         } else {
             throw new Exception('參加表明期間ではありません');
         }
     } catch (Exception $e) {
         $this->displayErrorView($e->getMessage());
     }
 }
開發者ID:ktanifuji,項目名稱:gr3,代碼行數:20,代碼來源:EntryController.php


注:本文中的Schedule::is_in_time方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。