Added skip view page feature
This commit is contained in:
@@ -47,6 +47,20 @@ $mod_scorm_capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'mod/scorm:skipview' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_MODULE,
|
||||
'legacy' => array(
|
||||
'guest' => CAP_PREVENT,
|
||||
'student' => CAP_ALLOW,
|
||||
'teacher' => CAP_PREVENT,
|
||||
'editingteacher' => CAP_PREVENT,
|
||||
'coursecreator' => CAP_PREVENT,
|
||||
'admin' => CAP_PREVENT
|
||||
)
|
||||
),
|
||||
|
||||
'mod/scorm:savetrack' => array(
|
||||
|
||||
'captype' => 'write',
|
||||
|
||||
@@ -217,6 +217,10 @@ function scorm_upgrade($oldversion) {
|
||||
execute_sql("ALTER TABLE {$CFG->prefix}scorm_scoes_track ADD INDEX element(element(255));",false);
|
||||
}
|
||||
|
||||
if ($oldversion < 2006102600) {
|
||||
table_column("scorm", "", "skipview", "TINYINT", "1", "UNSIGNED", "1", "NOT NULL", "launch");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -12,6 +12,7 @@ CREATE TABLE prefix_scorm (
|
||||
grademethod tinyint(2) NOT NULL default '0',
|
||||
maxattempt int(10) NOT NULL default '1',
|
||||
launch int(10) unsigned NOT NULL default '0',
|
||||
skipview tinyint(1) unsigned NOT NULL default '1',
|
||||
summary text NOT NULL default '',
|
||||
hidebrowse tinyint(1) NOT NULL default '0',
|
||||
hidetoc tinyint(1) NOT NULL default '0',
|
||||
|
||||
Reference in New Issue
Block a user