Added support for timestart and timeend (user_teachers table) and
authorstronk7 <stronk7>
Thu, 24 Jun 2004 22:41:00 +0000 (22:41 +0000)
committerstronk7 <stronk7>
Thu, 24 Jun 2004 22:41:00 +0000 (22:41 +0000)
idnumber (course table). :-)

backup/backuplib.php
backup/restorelib.php

index 93e2d1b..dd3f478 100644 (file)
             fwrite ($bf,full_tag("PASSWORD",3,false,$course->password));
             fwrite ($bf,full_tag("FULLNAME",3,false,$course->fullname));
             fwrite ($bf,full_tag("SHORTNAME",3,false,$course->shortname));
+            fwrite ($bf,full_tag("IDNUMBER",3,false,$course->idnumber));
             fwrite ($bf,full_tag("SUMMARY",3,false,$course->summary));
             fwrite ($bf,full_tag("FORMAT",3,false,$course->format));
             fwrite ($bf,full_tag("SHOWGRADES",3,false,$course->showgrades));
                         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("TIMESTART",6,false,$tea->timestart));
+                        fwrite ($bf,full_tag("TIMEEND",6,false,$tea->timeend));
                         fwrite ($bf,full_tag("TIMEMODIFIED",6,false,$tea->timemodified));
                         fwrite ($bf,full_tag("TIMEACCESS",6,false,$tea->timeaccess));
                         //Print ROLE end
index 4f5ea37..8bb2b9b 100644 (file)
             $course->password = addslashes($course_header->course_password);
             $course->fullname = addslashes($course_header->course_fullname);
             $course->shortname = addslashes($course_header->course_shortname);
+            $course->idnumber = addslashes($course_header->course_idnumber);
             $course->summary = addslashes($course_header->course_summary);
             $course->format = addslashes($course_header->course_format);
             $course->showgrades = addslashes($course_header->course_showgrades);
                         case "SHORTNAME":
                             $this->info->course_shortname = $this->getContents();
                             break;
+                        case "IDNUMBER":
+                            $this->info->course_idnumber = $this->getContents();
+                            break;
                         case "SUMMARY":
                             $this->info->course_summary = $this->getContents();
                             break;
                         case "EDITALL":
                             $this->info->temprole->editall = $this->getContents();
                             break;
+                        case "TIMESTART":
+                            $this->info->temprole->timestart = $this->getContents();
+                            break;
+                        case "TIMEEND":
+                            $this->info->temprole->timeend = $this->getContents();
+                            break;
                         case "TIMEMODIFIED":
                             $this->info->temprole->timemodified = $this->getContents();
                             break;