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


PHP scorm_debugging函數代碼示例

本文整理匯總了PHP中scorm_debugging函數的典型用法代碼示例。如果您正苦於以下問題:PHP scorm_debugging函數的具體用法?PHP scorm_debugging怎麽用?PHP scorm_debugging使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了scorm_debugging函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: sesskey

&sesskey=<?php 
echo sesskey();
?>
"+datastring);
        var results = String(result).split('\n');
        if ((results.length > 2) && (navrequest != '')) {
            eval(results[2]);
        }
        errorCode = results[1];
        return results[0];
    }

    this.Initialize = Initialize;
    this.Terminate = Terminate;
    this.GetValue = GetValue;
    this.SetValue = SetValue;
    this.Commit = Commit;
    this.GetLastError = GetLastError;
    this.GetErrorString = GetErrorString;
    this.GetDiagnostic = GetDiagnostic;
    this.version = '1.0';
}

var API_1484_11 = new SCORMapi1_3();

<?php 
// pull in the debugging utilities
if (scorm_debugging($scorm)) {
    include_once $CFG->dirroot . '/mod/scorm/datamodels/debug.js.php';
    echo 'AppendToLog("Moodle SCORM 1.3 API Loaded, Activity: ' . $scorm->name . ', SCO: ' . $sco->identifier . '", 0);';
}
開發者ID:sebastiansanio,項目名稱:tallerdeprogramacion2fiuba,代碼行數:31,代碼來源:scorm_13.js.php

示例2: String

    // drop call to GetLastError for the time being - it produces too much chatter
    if (func.match(/GetLastError/)) {
        return;
    }
    var s = func + '("' + nam + '"';
    if (val != null && ! (func.match(/GetValue|GetLastError/))) {
        s += ', "' + val + '"';
    }
    s += ')';
    if (func.match(/GetValue/)) {
        s += ' - ' + val;
    }
    s += ' => ' + String(rc);
    AppendToLog(s, rc);
<?php 
if (scorm_debugging($scorm) && $sco->scormtype == 'asset') {
    ?>
    hint = 'Item <?php 
    echo $sco->identifier;
    ?>
 has been defined as an Asset: it should never call the SCORM API';
    AppendToLog(hint, 101);
<?php 
}
?>
}


// Add in a JS controlled link for toggling the Debug logging
if (!document.getElementById('mod-scorm-log-toggle')) {
    var logButton = document.createElement('a');
開發者ID:EmmanuelYupit,項目名稱:educursos,代碼行數:31,代碼來源:debug.js.php


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