Adding new feature: Time delay between quiz attempts

This commit is contained in:
moodler
2006-02-13 01:49:52 +00:00
parent e61eab5a83
commit fd198b8776
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -754,6 +754,8 @@
fwrite ($bf,full_tag("PASSWORD",4,false,$quiz->password));
fwrite ($bf,full_tag("SUBNET",4,false,$quiz->subnet));
fwrite ($bf,full_tag("POPUP",4,false,$quiz->popup));
fwrite ($bf,full_tag("DELAY1",4,false,$quiz->delay1));
fwrite ($bf,full_tag("DELAY2",4,false,$quiz->delay2));
//Now we print to xml question_instances (Course Level)
$status = backup_quiz_question_instances($bf,$preferences,$quiz->id);
//Now we print to xml question_versions (Course Level)
+2 -1
View File
@@ -1352,7 +1352,8 @@
$quiz->password = backup_todb($info['MOD']['#']['PASSWORD']['0']['#']);
$quiz->subnet = backup_todb($info['MOD']['#']['SUBNET']['0']['#']);
$quiz->popup = backup_todb($info['MOD']['#']['POPUP']['0']['#']);
$quiz->delay1 = backup_todb($info['MOD']['#']['DELAY1']['0']['#']);
$quiz->delay2 = backup_todb($info['MOD']['#']['DELAY2']['0']['#']);
//We have to recode the questions field (a list of questions id and pagebreaks)
$quiz->questions = quiz_recode_layout($quiz->questions, $restore);