Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

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

Defines 1 class

get_grade_tree:: (4 methods):
  execute_parameters()
  execute()
  execute_returns()
  generate_course_grade_tree()


Class: get_grade_tree  - X-Ref

Web service to return the grade tree structure for a given course.

execute_parameters()   X-Ref
Returns description of method parameters.

return: external_function_parameters

execute(int $courseid)   X-Ref
Given a course ID, return the grade tree structure for that course.

param: int $courseid The course ID.
return: string JSON encoded data representing the course grade tree structure.

execute_returns()   X-Ref
Describes the return structure.

return: external_value

generate_course_grade_tree(\grade_category $gradecategory)   X-Ref
Recursively generates the course grade tree structure.

param: \grade_category $gradecategory The course grade category.
return: array The course grade tree structure.