本文整理汇总了PHP中Messages::notEligible方法的典型用法代码示例。如果您正苦于以下问题:PHP Messages::notEligible方法的具体用法?PHP Messages::notEligible怎么用?PHP Messages::notEligible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Messages
的用法示例。
在下文中一共展示了Messages::notEligible方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkEligibility
public static function checkEligibility($unit, $data = [])
{
$ret = application_requirement::ok($unit, $data);
if (!$ret) {
Session::flush('not-eligible', Messages::notEligible());
}
}
示例2: step2
public function step2()
{
if (Session::exists('invalid-captcha')) {
$data = $this->model->getStep2();
$this->view->render("admissionform/step2", $data);
return;
}
if (null !== Input::get('unit')) {
$_SESSION['admission.unit'] = Input::get('unit');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('ssc_roll')) {
$_SESSION['ssc.roll'] = Input::get('ssc_roll');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('ssc_res')) {
$_SESSION['ssc.res'] = Input::get('ssc_res');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('ssc_session')) {
$_SESSION['ssc.session'] = Input::get('ssc_session');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('ssc_py')) {
$_SESSION['ssc.py'] = Input::get('ssc_py');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('ssc_board')) {
$_SESSION['ssc.board'] = Input::get('ssc_board');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('ssc_gpa')) {
$_SESSION['ssc.gpa'] = Input::get('ssc_gpa');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('hsc_roll')) {
$_SESSION['hsc.roll'] = Input::get('hsc_roll');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('hsc_res')) {
$_SESSION['hsc.res'] = Input::get('hsc_res');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('hsc_session')) {
$_SESSION['hsc.session'] = Input::get('hsc_session');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('hsc_board')) {
$_SESSION['hsc.board'] = Input::get('hsc_board');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('hsc_py')) {
$_SESSION['hsc.py'] = Input::get('hsc_py');
} else {
return miscellaneous::Error();
}
if (null !== Input::get('hsc_gpa')) {
$_SESSION['hsc.gpa'] = Input::get('hsc_gpa');
} else {
return miscellaneous::Error();
}
//check if applicats is eligible for application
$D = $this->model->getStep1();
$ok = application_requirement::ok($D);
if (!$ok) {
Session::flush('not-eligible', Messages::notEligible($D['admission_unit']));
//s Redirect::to(SITE_URL . '/admissionform/step1');
}
$data = $this->model->getStep2();
$this->view->render("admissionform/step2", $data);
}