Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Grade item mappings for the activity. More...
Static Public Member Functions | |
static | get_field_name_for_itemnumber (string $component, int $itemnumber, string $fieldname) |
Get the suffixed field name for an activity field mapped from its itemnumber. | |
static | get_itemname_mapping_for_component () |
Return the list of grade item mappings for the workshop. | |
Grade item mappings for the activity.
|
static |
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.
string | $component | The component that the grade item belongs to |
int | $itemnumber | The grade itemnumber |
string | $fieldname | The name of the field to be rewritten |
string | The translated field name |
Implements core_grades\local\gradeitem\fieldname_mapping.
|
static |
Return the list of grade item mappings for the workshop.
array |
Implements core_grades\local\gradeitem\itemnumber_mapping.