mod_forum/local/grades/local/grader/gradingpanel

Grading panel functions.

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

(require("mod_forum/local/grades/local/grader/gradingpanel"))(component, context, gradingComponent, gradingSubtype, itemName) → {Object}

Source:

Get the grade panel setter and getter for the current component. This function dynamically pulls the relevant gradingpanel JS file defined in the grading method. We do this because we do not know until execution time what the grading type is and we do not want to import unused files.

Parameters:
Name Type Description
component String

The component being graded

context Number

The contextid of the thing being graded

gradingComponent String

The thing providing the grading type

gradingSubtype String

The subtype fo the grading component

itemName String

The name of the thing being graded

Returns:
Type
Object