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

@ -28,6 +28,8 @@ define('SCORM_TYPE_LOCALSYNC', 'localsync');
define('SCORM_TYPE_EXTERNAL', 'external');
/** SCORM_TYPE_IMSREPOSITORY = imsrepository */
define('SCORM_TYPE_IMSREPOSITORY', 'imsrepository');
/** SCORM_TYPE_AICCURL = external AICC url */
define('SCORM_TYPE_AICCURL', 'aiccurl');
define('SCORM_TOC_SIDE', 0);
define('SCORM_TOC_HIDDEN', 1);
@ -103,13 +105,12 @@ function scorm_add_instance($scorm, $mform=null) {
} else if ($record->scormtype === SCORM_TYPE_LOCALSYNC) {
$record->reference = $scorm->packageurl;
} else if ($record->scormtype === SCORM_TYPE_EXTERNAL) {
$record->reference = $scorm->packageurl;
} else if ($record->scormtype === SCORM_TYPE_IMSREPOSITORY) {
$record->reference = $scorm->packageurl;
} else if ($record->scormtype === SCORM_TYPE_AICCURL) {
$record->reference = $scorm->packageurl;
} else {
return false;
}