Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
mod_workshop\grades\gradeitems Class Reference

Grade item mappings for the activity. More...

Inheritance diagram for mod_workshop\grades\gradeitems:
core_grades\local\gradeitem\itemnumber_mapping core_grades\local\gradeitem\fieldname_mapping

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.
 

Detailed Description

Grade item mappings for the activity.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_field_name_for_itemnumber()

static mod_workshop\grades\gradeitems::get_field_name_for_itemnumber ( string $component,
int $itemnumber,
string $fieldname )
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.

Parameters
string$componentThe component that the grade item belongs to
int$itemnumberThe grade itemnumber
string$fieldnameThe name of the field to be rewritten
Return values
stringThe translated field name

Implements core_grades\local\gradeitem\fieldname_mapping.

◆ get_itemname_mapping_for_component()

static mod_workshop\grades\gradeitems::get_itemname_mapping_for_component ( )
static

Return the list of grade item mappings for the workshop.

Return values
array

Implements core_grades\local\gradeitem\itemnumber_mapping.


The documentation for this class was generated from the following file: