&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
0
    // 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');