SCORM MDL-30146 AICC - add ability to link direct to a simple AICC url

This commit is contained in:
Dan Marsden 2011-11-05 21:51:24 +13:00
parent ba0e91a281
commit 4388bd45b2
6 changed files with 79 additions and 8 deletions

View file

@ -244,6 +244,7 @@ function scorm_parse($scorm, $full) {
if (!scorm_parse_aicc($scorm)) {
$scorm->version = 'ERROR';
}
$scorm->version = 'AICC';
}
} else if ($scorm->scormtype === SCORM_TYPE_EXTERNAL and $cfg_scorm->allowtypeexternal) {
@ -266,7 +267,13 @@ function scorm_parse($scorm, $full) {
$scorm->version = 'ERROR';
}
$newhash = sha1($scorm->reference);
} else if ($scorm->scormtype === SCORM_TYPE_AICCURL and $cfg_scorm->allowtypeexternalaicc) {
require_once("$CFG->dirroot/mod/scorm/datamodels/aicclib.php");
// AICC
if (!scorm_parse_aicc($scorm)) {
$scorm->version = 'ERROR';
}
$scorm->version = 'AICC';
} else {
// sorry, disabled type
return;