本文整理汇总了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);';
}
示例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');