Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400]

Grade item mappings for the activity.

Copyright: Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 72 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: gradeitems  - X-Ref

Grade item mappings for the activity.

get_itemname_mapping_for_component()   X-Ref
Return the list of grade item mappings for the workshop.

return: array

get_field_name_for_itemnumber(string $component, int $itemnumber, string $fieldname)   X-Ref
Get the suffixed field name for an activity field mapped from its itemnumber.

For legacy reasons, the first itemnumber has no suffix on field names.

return: string The translated field name
param: string $component The component that the grade item belongs to
param: int $itemnumber The grade itemnumber
param: string $fieldname The name of the field to be rewritten