本文整理汇总了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');
}
示例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');
}
示例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());
}
}
示例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());
}
}
示例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());
}
}