Added support to timelimit, password and subnet in backup & restore.
This commit is contained in:
@@ -450,6 +450,9 @@
|
||||
fwrite ($bf,full_tag("GRADE",4,false,$quiz->grade));
|
||||
fwrite ($bf,full_tag("TIMECREATED",4,false,$quiz->timecreated));
|
||||
fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$quiz->timemodified));
|
||||
fwrite ($bf,full_tag("TIMELIMIT",4,false,$quiz->timelimit));
|
||||
fwrite ($bf,full_tag("PASSWORD",4,false,$quiz->password));
|
||||
fwrite ($bf,full_tag("SUBNET",4,false,$quiz->subnet));
|
||||
//Now we print to xml question_grades (Course Level)
|
||||
$status = backup_quiz_question_grades($bf,$preferences,$quiz->id);
|
||||
//if we've selected to backup users info, then execute:
|
||||
|
||||
@@ -1089,6 +1089,9 @@
|
||||
$quiz->grade = backup_todb($info['MOD']['#']['GRADE']['0']['#']);
|
||||
$quiz->timecreated = backup_todb($info['MOD']['#']['TIMECREATED']['0']['#']);
|
||||
$quiz->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
|
||||
$quiz->timelimit = backup_todb($info['MOD']['#']['TIMELIMIT']['0']['#']);
|
||||
$quiz->password = backup_todb($info['MOD']['#']['PASSWORD']['0']['#']);
|
||||
$quiz->subnet = backup_todb($info['MOD']['#']['SUBNET']['0']['#']);
|
||||
|
||||
//We have to recode the questions field (a list of questions id)
|
||||
//Extracts question id from sequence
|
||||
|
||||
Reference in New Issue
Block a user