Permalink
Browse files

Added skip view page feature

  • Loading branch information...
1 parent f8857b4 commit 32cfa4dbf8e071372c7c0bd35189812fe0571f1b bobopinna committed Sep 26, 2006
Showing with 19 additions and 0 deletions.
  1. +14 −0 mod/scorm/db/access.php
  2. +4 −0 mod/scorm/db/mysql.php
  3. +1 −0 mod/scorm/db/mysql.sql
@@ -47,6 +47,20 @@
)
),
+ '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',

0 comments on commit 32cfa4d

Please sign in to comment.