]> git.mjollnir.org Git - moodle.git/commitdiff
Now editall and timemodified are in
authorstronk7 <stronk7>
Sat, 16 Aug 2003 11:31:32 +0000 (11:31 +0000)
committerstronk7 <stronk7>
Sat, 16 Aug 2003 11:31:32 +0000 (11:31 +0000)
backup/restore process

backup/backuplib.php
backup/restorelib.php

index 2204f887d5049418586de88fd4dbf862e291ea19..8bdc34c1af8d114ec82b97db9c76cef3c700cd4e 100644 (file)
                         $tea = get_record("user_teachers","userid",$user->old_id,"course",$preferences->backup_course);
                         fwrite ($bf,full_tag("AUTHORITY",6,false,$tea->authority));
                         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));
                         //Print ROLE end
                         fwrite ($bf,end_tag("ROLE",5,true));   
                     }
index ce889252ce9c038ac4306062c993c169c511888d..9006022d31ec1cf5f6ce1049829cc366c53c60a6 100644 (file)
                                 $this->info->temprole->authority;
                             $this->info->tempuser->roles[$this->info->temprole->type]->tea_role =
                                 $this->info->temprole->tea_role;
+                            $this->info->tempuser->roles[$this->info->temprole->type]->editall =
+                                $this->info->temprole->editall;
+                            $this->info->tempuser->roles[$this->info->temprole->type]->timemodified =
+                                $this->info->temprole->timemodified;
                             $this->info->tempuser->roles[$this->info->temprole->type]->timestart =
                                 $this->info->temprole->timestart;
                             $this->info->tempuser->roles[$this->info->temprole->type]->timeend =
                         case "TEA_ROLE":
                             $this->info->temprole->tea_role = $this->getContents();
                             break;
+                        case "EDITALL":
+                            $this->info->temprole->editall = $this->getContents();
+                            break;
+                        case "TIMEMODIFIED":
+                            $this->info->temprole->timemodified = $this->getContents();
+                            break;
                         case "TIMESTART":
                             $this->info->temprole->timestart = $this->getContents();
                             break;