Added skip view page feature

This commit is contained in:
bobopinna
2006-09-26 14:25:59 +00:00
parent f8857b4925
commit 32cfa4dbf8
3 changed files with 19 additions and 0 deletions
+14
View File
@@ -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',
+4
View File
@@ -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;
}
?>
+1
View File
@@ -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',