From: stronk7 Date: Mon, 27 Oct 2003 17:23:43 +0000 (+0000) Subject: timeaccess (students and teachers) included in backup/restore. :-) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dabf73b44a08f591e2fb26f9729b2ad090d2d0ce;p=moodle.git timeaccess (students and teachers) included in backup/restore. :-) --- diff --git a/backup/backuplib.php b/backup/backuplib.php index 9098127a2b..25665f8430 100644 --- a/backup/backuplib.php +++ b/backup/backuplib.php @@ -776,6 +776,7 @@ fwrite ($bf,full_tag("TEA_ROLE",6,false,$tea->role)); fwrite ($bf,full_tag("EDITALL",6,false,$tea->editall)); fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$tea->timemodified)); + fwrite ($bf,full_tag("TIMEACCESS",6,false,$tea->timeaccess)); //Print ROLE end fwrite ($bf,end_tag("ROLE",5,true)); } @@ -790,6 +791,7 @@ fwrite ($bf,full_tag("TIMESTART",6,false,$stu->timestart)); fwrite ($bf,full_tag("TIMEEND",6,false,$stu->timeend)); fwrite ($bf,full_tag("TIME",6,false,$stu->time)); + fwrite ($bf,full_tag("TIMEACCESS",6,false,$stu->timeaccess)); //Print ROLE end fwrite ($bf,end_tag("ROLE",5,true)); } diff --git a/backup/restorelib.php b/backup/restorelib.php index fe03f7c0f3..dc7d5d3ae4 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -1568,6 +1568,9 @@ case "TIME": $this->info->temprole->time = $this->getContents(); break; + case "TIMEACCESS": + $this->info->temprole->timeaccess = $this->getContents(); + break; } } }