Helper class to fetch information about component grade items.  
 More...
Helper class to fetch information about component grade items. 
- Copyright
- Andrew Nicols andre.nosp@m.w@ni.nosp@m.cols..nosp@m.co.u.nosp@m.k 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ defines_advancedgrading_itemnames_for_component()
  
  | 
        
          | static core_grades\component_gradeitems::defines_advancedgrading_itemnames_for_component | ( | string | $component | ) |  |  | static | 
 
Check whether the component class defines the advanced grading items. 
- Parameters
- 
  
    | string | $component | The component to check |  
 
- Return values
- 
  
  
 
 
◆ get_advancedgrading_itemnames_for_component()
  
  | 
        
          | static core_grades\component_gradeitems::get_advancedgrading_itemnames_for_component | ( | string | $component | ) |  |  | static | 
 
Get the list of advanced grading item names for the named component. 
- Parameters
- 
  
  
- Return values
- 
  
  
 
 
◆ get_component_classname()
  
  | 
        
          | static core_grades\component_gradeitems::get_component_classname | ( | string | $component | ) |  |  | staticprotected | 
 
Get the gradeitems classname for the specific component. 
- Parameters
- 
  
    | string | $component | The component to fetch the classname for |  
 
- Return values
- 
  
    | string | The composed classname |  
 
 
 
◆ get_field_name_for_itemname()
  
  | 
        
          | static core_grades\component_gradeitems::get_field_name_for_itemname | ( | string | $component, |  
          |  |  | string | $itemname, |  
          |  |  | 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 | $component | The component that the grade item belongs to |  | string | $itemname | The grade itemname |  | string | $fieldname | The name of the field to be rewritten |  
 
- Return values
- 
  
    | string | The translated field name |  
 
 
 
◆ get_field_name_for_itemnumber()
  
  | 
        
          | static core_grades\component_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 | $component | The component that the grade item belongs to |  | int | $itemnumber | The grade itemnumber |  | string | $fieldname | The name of the field to be rewritten |  
 
- Return values
- 
  
    | string | The translated field name |  
 
 
 
◆ get_itemname_from_itemnumber()
  
  | 
        
          | static core_grades\component_gradeitems::get_itemname_from_itemnumber | ( | string | $component, |  
          |  |  | int | $itemnumber ) |  | static | 
 
Get the itemname for an itemnumber. 
For legacy compatability when the itemnumber is 0, the itemname will always be empty.
- Parameters
- 
  
    | string | $component | The component that the grade item belongs to |  | int | $itemnumber | The grade itemnumber |  
 
- Return values
- 
  
    | int | The grade itemnumber of the itemname |  
 
 
 
◆ get_itemname_mapping_for_component()
  
  | 
        
          | static core_grades\component_gradeitems::get_itemname_mapping_for_component | ( | string | $component | ) |  |  | static | 
 
Get the grade itemnumber mapping for a component. 
- Parameters
- 
  
    | string | $component | The component that the grade item belongs to |  
 
- Return values
- 
  
  
 
 
◆ get_itemnumber_from_itemname()
  
  | 
        
          | static core_grades\component_gradeitems::get_itemnumber_from_itemname | ( | string | $component, |  
          |  |  | string | $itemname ) |  | static | 
 
Get the itemnumber for a item name. 
For legacy compatability when the itemname is empty, the itemnumber will always be 0.
- Parameters
- 
  
    | string | $component | The component that the grade item belongs to |  | string | $itemname | The grade itemname |  
 
- Return values
- 
  
    | int | The grade itemname of the itemnumber |  
 
 
 
◆ is_advancedgrading_itemname()
  
  | 
        
          | static core_grades\component_gradeitems::is_advancedgrading_itemname | ( | string | $component, |  
          |  |  | string | $itemname ) |  | static | 
 
Whether the named grading item name supports advanced grading. 
- Parameters
- 
  
    | string | $component |  |  | string | $itemname |  |  
 
- Return values
- 
  
  
 
 
◆ is_valid_itemname()
  
  | 
        
          | static core_grades\component_gradeitems::is_valid_itemname | ( | string | $component, |  
          |  |  | string | $itemname ) |  | static | 
 
Whether the named grading item exists. 
- Parameters
- 
  
    | string | $component |  |  | string | $itemname |  |  
 
- Return values
- 
  
  
 
 
The documentation for this class was generated from the following file: