本文整理匯總了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());
}
}