本文整理汇总了PHP中DataValidator::validate_event_token方法的典型用法代码示例。如果您正苦于以下问题:PHP DataValidator::validate_event_token方法的具体用法?PHP DataValidator::validate_event_token怎么用?PHP DataValidator::validate_event_token使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataValidator
的用法示例。
在下文中一共展示了DataValidator::validate_event_token方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
//createCSVFileToDownload($_POST);
//$text = translateFN('The eguidance session data were correctly saved.');
//$form = CommunicationModuleHtmlLib::getOperationWasSuccessfullView($text);
/*
* Redirect the practitioner to user service detail
*/
$tutored_user_id = $eguidance_dataAr['id_utente'];
$id_course_instance = $eguidance_dataAr['id_istanza_corso'];
header('Location: user_service_detail.php?id_user=' . $tutored_user_id . '&id_course_instance=' . $id_course_instance . $href_suffix);
exit;
} else {
/*
* Obtain event_token from $_GET.
*/
if (isset($_GET['event_token'])) {
$event_token = DataValidator::validate_event_token($_GET['event_token']);
if ($event_token === FALSE) {
$errObj = new ADA_Error(NULL, translateFN("Dati in input per il modulo eguidance_tutor_form non corretti"), NULL, NULL, NULL, $userObj->getHomePage());
}
} else {
$errObj = new ADA_Error(NULL, translateFN("Dati in input per il modulo eguidance_tutor_form non corretti"), NULL, NULL, NULL, $userObj->getHomePage());
}
$id_course_instance = ADAEventProposal::extractCourseInstanceIdFromThisToken($event_token);
/*
* Get service info
*/
$id_course = $dh->get_course_id_for_course_instance($id_course_instance);
if (AMA_DataHandler::isError($id_course)) {
$errObj = new ADA_Error(NULL, translateFN("Errore nell'ottenimento dell'id del servzio"), NULL, NULL, NULL, $userObj->getHomePage());
}
$service_infoAr = $common_dh->get_service_info_from_course($id_course);