本文整理匯總了PHP中Courses::verifyRequestIsValid方法的典型用法代碼示例。如果您正苦於以下問題:PHP Courses::verifyRequestIsValid方法的具體用法?PHP Courses::verifyRequestIsValid怎麽用?PHP Courses::verifyRequestIsValid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Courses
的用法示例。
在下文中一共展示了Courses::verifyRequestIsValid方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: exams
}
} else {
if ($current_session === "9") {
$past_courses[] = $asc;
}
}
}
}
}
}
$l10n->addResource(__DIR__ . '/l10n/courses.json');
$viewFile = 'views/courses.php';
}
} else {
if ($_GET['page'] === "mark-as-opted-out") {
if ($model->verifyRequestIsValid($_POST)) {
$model->markStudentAsOptedOut($_POST);
$loggers['audit']->info("Student {$data['student_num']} opted-out of accommodations for course {$data['course_code']}{$data['course_section']} for session {$data['session']}");
//Since the student has opted out, it is now time to cancel confirm exams
$model->cancelFutureConfirmedExams($_POST);
$loggers['audit']->info("Future confirmed exams (for relevant courses) cancelled for student {$data['student_num']} due to opting out of accommodations");
}
} else {
if ($_GET['page'] === "mark-as-opted-in") {
if ($model->verifyRequestIsValid($_POST)) {
$model->markStudentAsOptedIn($_POST);
$loggers['audit']->info("Student {$data['student_num']} opted-in to accommodations for course {$data['course_code']}{$data['course_section']} for session {$data['session']}");
//Since the student has opted back in, it is not time to remove future confirmed exams that were previously cancelled due to student opting out
$model->deleteFutureConfirmedCancelledExams($_POST);
$loggers['audit']->info("Future cancelled-confirmed exams (for relevant courses) deleted for student {$data['student_num']} due to opting back in to accommodations");
}