Search moodle.org's
Developer Documentation

See Release Notes

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

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

Core grades external functions

Copyright: 2012 Andrew Davis
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 295 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_grades_external  - X-Ref

core grades functions

update_grades_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

update_grades($source, $courseid, $component, $activityid,$itemnumber, $grades = array()   X-Ref
Update a grade item and, optionally, student grades

param: string $source       The source of the grade update
param: int $courseid        The course id
param: string $component    Component name
param: int $activityid      The activity id
param: int $itemnumber      The item number
param: array  $grades      Array of grades
param: array  $itemdetails Array of item details
return: int                  A status flag

update_grades_returns()   X-Ref
Returns description of method result value

return: \core_external\external_description

create_gradecategory_parameters()   X-Ref
Returns description of method parameters

return: external_function_parameters

create_gradecategory(int $courseid, string $fullname, array $options)   X-Ref
Creates a gradecategory inside of the specified course.

param: int $courseid the courseid to create the gradecategory in.
param: string $fullname the fullname of the grade category to create.
param: array $options array of options to set.
return: array array of created categoryid and warnings.

create_gradecategory_returns()   X-Ref
Returns description of method result value

return: \core_external\external_description

create_gradecategory_is_deprecated()   X-Ref
Marking the method as deprecated. See MDL-71031 for details.

return: bool