]> git.mjollnir.org Git - moodle.git/commitdiff
timeaccess (students and teachers) included in backup/restore. :-)
authorstronk7 <stronk7>
Mon, 27 Oct 2003 17:23:43 +0000 (17:23 +0000)
committerstronk7 <stronk7>
Mon, 27 Oct 2003 17:23:43 +0000 (17:23 +0000)
backup/backuplib.php
backup/restorelib.php

index 9098127a2bde4091342d11f647731aa1c76058a1..25665f8430a6253cbe01a35474abeae10e5df088 100644 (file)
                         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));   
                     }
                         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));   
                     }
index fe03f7c0f3264923764b063d4df53e984b809135..dc7d5d3ae40497f3fd9736feb515f2a487ca972f 100644 (file)
                         case "TIME":
                             $this->info->temprole->time = $this->getContents();
                             break;
+                        case "TIMEACCESS":
+                            $this->info->temprole->timeaccess = $this->getContents();
+                            break;
                     }
                 }
             }