MDL-13431 - SCORM results not transferring to Gradebook. Add logging mechanism so that SCORM API interaction with Moodle can be traced.

This commit is contained in:
piers 2008-08-20 22:23:08 +00:00
parent 24f40ab74e
commit a6bd6132e6

View File

@ -67,6 +67,12 @@
}
}
}
// Log every datamodel update requested
if (substr($element,0,15) == 'adl.nav.request' || substr($element,0,3) == 'cmi') {
if (debugging('',DEBUG_DEVELOPER)) {
add_to_log($course->id, 'scorm', 'trk: '.trim($scorm->name).' at: '.$attempt, 'view.php?id='.$cm->id, "$element => $value", $cm->id);
}
}
}
}
if ($result) {