Moodle  2.2.1
http://www.collinsharper.com
testable_workshop Class Reference
Inheritance diagram for testable_workshop:
Collaboration diagram for testable_workshop:

Public Member Functions

 __construct ()
 aggregate_submission_grades_process (array $assessments)
 aggregate_grading_grades_process (array $assessments, $timegraded=null)

Detailed Description

Test subclass that makes all the protected methods we want to test public.

Definition at line 37 of file testlocallib.php.


Constructor & Destructor Documentation

Definition at line 39 of file testlocallib.php.


Member Function Documentation

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.

Parameters:
array$assessmentsof stdclass(->reviewerid ->gradinggrade ->gradinggradeover ->aggregationid ->aggregatedgrade)
null | int$timegradedexplicit timestamp of the aggregation, defaults to the current time
Returns:
void

Reimplemented from workshop.

Definition at line 50 of file testlocallib.php.

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.

Parameters:
array$assessmentsof stdclass(->submissionid ->submissiongrade ->gradeover ->weight ->grade)
Returns:
void

Reimplemented from workshop.

Definition at line 46 of file testlocallib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations