]> git.mjollnir.org Git - moodle.git/commitdiff
Added support to teacherloading, assessmentstodrop and donotuse
authorstronk7 <stronk7>
Mon, 5 Jan 2004 18:21:42 +0000 (18:21 +0000)
committerstronk7 <stronk7>
Mon, 5 Jan 2004 18:21:42 +0000 (18:21 +0000)
fields in workshop module.

mod/workshop/backuplib.php
mod/workshop/restorelib.php

index 92ccdcd0d3779a4bef7434c53811e44fdf70f716..4b54353b9f40de535e2708761196f75f07d5554e 100644 (file)
@@ -77,6 +77,8 @@
                 fwrite ($bf,full_tag("RELIABILITYWEIGHT",4,false,$workshop->reliabilityweight));
                 fwrite ($bf,full_tag("GRADINGWEIGHT",4,false,$workshop->gradingweight));
                 fwrite ($bf,full_tag("SHOWLEAGUETABLE",4,false,$workshop->showleaguetable));
+                fwrite ($bf,full_tag("TEACHERLOADING",4,false,$workshop->teacherloading));
+                fwrite ($bf,full_tag("ASSESSMENTSTODROP",4,false,$workshop->assessmentstodrop));
                 //Now we backup workshop elements
                 $status = backup_workshop_elements($bf,$preferences,$workshop->id);
                 //if we've selected to backup users info, then execute backup_workshop_submisions
                 fwrite ($bf,full_tag("TIMEAGREED",8,false,$wor_ass->timeagreed));
                 fwrite ($bf,full_tag("GRADE",8,false,$wor_ass->grade));
                 fwrite ($bf,full_tag("GRADINGGRADE",8,false,$wor_ass->gradinggrade));
-                fwrite ($bf,full_tag("RESUBMISSION",8,false,$wor_ass->resubmission));
                 fwrite ($bf,full_tag("MAILED",8,false,$wor_ass->mailed));
+                fwrite ($bf,full_tag("RESUBMISSION",8,false,$wor_ass->resubmission));
+                fwrite ($bf,full_tag("DONOTUSE",8,false,$wor_ass->donotuse));
                 fwrite ($bf,full_tag("GENERALCOMMENT",8,false,$wor_ass->generalcomment));
                 fwrite ($bf,full_tag("TEACHERCOMMENT",8,false,$wor_ass->teachercomment));
                 //Now we backup workshop comments
index a6cd94d98a14db80af40254cfbb99b6ddadb31a6..642c3edb1019819dee57b6ad0ad3a83a4fa15daa 100644 (file)
@@ -80,6 +80,8 @@
             $workshop->reliabilityweight = backup_todb($info['MOD']['#']['RELIABILITYWEIGHT']['0']['#']);
             $workshop->gradingweight = backup_todb($info['MOD']['#']['GRADINGWEIGHT']['0']['#']);
             $workshop->showleaguetable = backup_todb($info['MOD']['#']['SHOWLEAGUETABLE']['0']['#']);
+            $workshop->teacherloading = backup_todb($info['MOD']['#']['TEACHERLOADING']['0']['#']);
+            $workshop->assessmentstodrop = backup_todb($info['MOD']['#']['ASSESSMENTSTODROP']['0']['#']);
 
             //The structure is equal to the db, so insert the workshop
             $newid = insert_record ("workshop",$workshop);
                 $assessment->timeagreed = backup_todb($ass_info['#']['TIMEAGREED']['0']['#']);
                 $assessment->grade = backup_todb($ass_info['#']['GRADE']['0']['#']);
                 $assessment->gradinggrade = backup_todb($ass_info['#']['GRADINGGRADE']['0']['#']);
-                $assessment->resubmission = backup_todb($ass_info['#']['RESUBMISSION']['0']['#']);
                 $assessment->mailed = backup_todb($ass_info['#']['MAILED']['0']['#']);
+                $assessment->resubmission = backup_todb($ass_info['#']['RESUBMISSION']['0']['#']);
+                $assessment->donotuse = backup_todb($ass_info['#']['DONOTUSE']['0']['#']);
                 $assessment->generalcomment = backup_todb($ass_info['#']['GENERALCOMMENT']['0']['#']);
                 $assessment->teachercomment = backup_todb($ass_info['#']['TEACHERCOMMENT']['0']['#']);