From: stronk7 Date: Mon, 5 Jan 2004 18:21:42 +0000 (+0000) Subject: Added support to teacherloading, assessmentstodrop and donotuse X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=282ecaf828a81e1cabaa39195aae412ff3f73665;p=moodle.git Added support to teacherloading, assessmentstodrop and donotuse fields in workshop module. --- diff --git a/mod/workshop/backuplib.php b/mod/workshop/backuplib.php index 92ccdcd0d3..4b54353b9f 100644 --- a/mod/workshop/backuplib.php +++ b/mod/workshop/backuplib.php @@ -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 @@ -227,8 +229,9 @@ 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 diff --git a/mod/workshop/restorelib.php b/mod/workshop/restorelib.php index a6cd94d98a..642c3edb10 100644 --- a/mod/workshop/restorelib.php +++ b/mod/workshop/restorelib.php @@ -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); @@ -309,8 +311,9 @@ $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']['#']);