mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
Now editall and timemodified are in
backup/restore process
This commit is contained in:
parent
3702c65e91
commit
35a14ba021
@ -644,6 +644,8 @@
|
||||
$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));
|
||||
}
|
||||
|
@ -1358,6 +1358,10 @@
|
||||
$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 =
|
||||
@ -1379,6 +1383,12 @@
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user