mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-10109 optional aggregation of outcomes together with grades
This commit is contained in:
parent
e754b3e058
commit
29d509f59a
9 changed files with 70 additions and 8 deletions
|
@ -1386,6 +1386,7 @@
|
|||
fwrite ($bf,full_tag("AGGREGATION",5,false,$grade_category->aggregation));
|
||||
fwrite ($bf,full_tag("KEEPHIGH",5,false,$grade_category->keephigh));
|
||||
fwrite ($bf,full_tag("DROPLOW",5,false,$grade_category->droplow));
|
||||
fwrite ($bf,full_tag("AGGREGATEOUTCOMES",5,false,$grade_category->aggregateoutcomes));
|
||||
|
||||
//End grade_category
|
||||
fwrite ($bf,end_tag("GRADE_CATEGORY",4,true));
|
||||
|
|
|
@ -1283,6 +1283,7 @@
|
|||
$dbrec->aggregation = backup_todb($info['GRADE_CATEGORY']['#']['AGGREGATION']['0']['#']);
|
||||
$dbrec->keephigh = backup_todb($info['GRADE_CATEGORY']['#']['KEEPHIGH']['0']['#']);
|
||||
$dbrec->droplow = backup_todb($info['GRADE_CATEGORY']['#']['DROPLOW']['0']['#']);
|
||||
$dbrec->aggregateoutcomes = backup_todb($info['GRADE_CATEGORY']['#']['AGGREGATEOUTCOMES']['0']['#']);
|
||||
$dbrec->hidden = backup_todb($info['GRADE_CATEGORY']['#']['HIDDEN']['0']['#']);
|
||||
|
||||
//Structure is equal to db, insert record
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue