From: stronk7 Date: Mon, 19 Jul 2004 20:04:33 +0000 (+0000) Subject: Added support to timelimit, password and subnet in backup & restore. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1b76b56cbc55a5fa221bbb976a9e2115f8651685;p=moodle.git Added support to timelimit, password and subnet in backup & restore. --- diff --git a/mod/quiz/backuplib.php b/mod/quiz/backuplib.php index e5c4811575..3f3e97af5e 100644 --- a/mod/quiz/backuplib.php +++ b/mod/quiz/backuplib.php @@ -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: diff --git a/mod/quiz/restorelib.php b/mod/quiz/restorelib.php index 8339dba8a6..5483549c12 100644 --- a/mod/quiz/restorelib.php +++ b/mod/quiz/restorelib.php @@ -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