Adding new feature: Time delay between quiz attempts
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user