|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct () | |
| aggregate_submission_grades_process (array $assessments) | |
| aggregate_grading_grades_process (array $assessments, $timegraded=null) | |
Test subclass that makes all the protected methods we want to test public.
Definition at line 37 of file testlocallib.php.
| __construct | ( | ) |
Definition at line 39 of file testlocallib.php.
| aggregate_grading_grades_process | ( | array $ | assessments, |
| $ | timegraded = null |
||
| ) |
Given an array of all assessments done by a single reviewer, calculates the final grading grade
This calculates the simple mean of the passed grading grades. If, however, the grading grade was overridden by a teacher, the gradinggradeover value is returned and the rest of grades are ignored.
| array | $assessments | of stdclass(->reviewerid ->gradinggrade ->gradinggradeover ->aggregationid ->aggregatedgrade) |
| null | int | $timegraded | explicit timestamp of the aggregation, defaults to the current time |
Reimplemented from workshop.
Definition at line 50 of file testlocallib.php.
| aggregate_submission_grades_process | ( | array $ | assessments | ) |
Given an array of all assessments of a single submission, calculates the final grade for this submission
This calculates the weighted mean of the passed assessment grades. If, however, the submission grade was overridden by a teacher, the gradeover value is returned and the rest of grades are ignored.
| array | $assessments | of stdclass(->submissionid ->submissiongrade ->gradeover ->weight ->grade) |
Reimplemented from workshop.
Definition at line 46 of file testlocallib.php.