Permalink
Browse files

group->password is now supported

  • Loading branch information...
1 parent 57aad2a commit 8a792ed10f492336eb9d3cd03cec85914ec299a3 stronk7 committed Jan 30, 2005
Showing with 3 additions and 1 deletion.
  1. +1 −1 backup/CHANGES_14_15.txt
  2. +1 −0 backup/backuplib.php
  3. +1 −0 backup/restorelib.php
@@ -14,7 +14,7 @@ Now I show the specific detailed status of every item in the process:
4. DONE: user_students->enrol (analyse and proceed).
5. DONE: user_teachers->enrol (analyse and proceed).
6. DONE: user->policyagreed (analyse and proceed).
- 7. TODO: groups->password
+ 7. DONE: groups->password
8. TODO: assignment->emailteachers
9. TODO: exercise->usepassword and exercise->password
10. TODO: exercise_assessments->generalcomment and teachercomment
@@ -1108,6 +1108,7 @@ function backup_groups_info($bf,$preferences) {
fwrite ($bf,full_tag("COURSEID",4,false,$group->courseid));
fwrite ($bf,full_tag("NAME",4,false,$group->name));
fwrite ($bf,full_tag("DESCRIPTION",4,false,$group->description));
+ fwrite ($bf,full_tag("PASSWORD",4,false,$group->password));
fwrite ($bf,full_tag("LANG",4,false,$group->lang));
fwrite ($bf,full_tag("PICTURE",4,false,$group->picture));
fwrite ($bf,full_tag("HIDEPICTURE",4,false,$group->hidepicture));
@@ -1241,6 +1241,7 @@ function restore_create_groups($restore,$xml_file) {
$gro->courseid = backup_todb($info['GROUP']['#']['COURSEID']['0']['#']);
$gro->name = backup_todb($info['GROUP']['#']['NAME']['0']['#']);
$gro->description = backup_todb($info['GROUP']['#']['DESCRIPTION']['0']['#']);
+ $gro->password = backup_todb($info['GROUP']['#']['PASSWORD']['0']['#']);
$gro->lang = backup_todb($info['GROUP']['#']['LANG']['0']['#']);
$gro->picture = backup_todb($info['GROUP']['#']['PICTURE']['0']['#']);
$gro->hidepicture = backup_todb($info['GROUP']['#']['HIDEPICTURE']['0']['#']);

0 comments on commit 8a792ed

Please sign in to comment.