Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

(no description)

File Size: 517 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

report_test:: (8 methods):

gradereport_history_tests_tablelog:: (1 method):

Class: report_test  - X-Ref

Grade history report test class.

test_query_db()   X-Ref
Create some grades.

test_get_users()   X-Ref
Test the get users helper method.

get_users_provider()   X-Ref
Data provider method for \gradereport_history_report_testcase::test_get_users_with_groups()

test_get_users_with_groups($groupmode, $teacherrole, $teachergroups, $expectedusers)   X-Ref
Test for helper::get_users() with course group mode set.

param: $groupmode
param: $teacherrole
param: $teachergroups
param: $expectedusers

test_graders()   X-Ref
Test the get graders helper method.

assertGradeHistoryIds(array $expectedids, array $objects)   X-Ref
Asserts that the array of grade objects contains exactly the right IDs.

param: array $expectedids Array of expected IDs.
param: array $objects Array of objects returned by the table.

create_grade_history($params)   X-Ref
Create a new grade history entry.

param: array $params Of values.
return: object The grade object.

get_tablelog_results($coursecontext, $filters = array()   X-Ref
Returns a table log object.

param: context_course $coursecontext The course context.
param: array $filters An array of filters.
param: boolean $count When true, returns a count rather than an array of objects.
return: mixed Count or array of objects.

Class: gradereport_history_tests_tablelog  - X-Ref

Extended table log class.

get_test_results($count = false)   X-Ref
Get the test results.

param: boolean $count Whether or not we want the count.
return: mixed Count or array of objects.