當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DataValidator::validate_event_token方法代碼示例

本文整理匯總了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);
開發者ID:eguicciardi,項目名稱:ada,代碼行數:31,代碼來源:eguidance_tutor_form.php


注:本文中的DataValidator::validate_event_token方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。