当前位置: 首页>>代码示例>>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;未经允许,请勿转载。