mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
SCORM MDL-30146 AICC - add ability to link direct to a simple AICC url
This commit is contained in:
parent
ba0e91a281
commit
4388bd45b2
6 changed files with 79 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue