mod_forum/grades/grader

This module will tie together all of the different calls the gradable module will make.

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

Members

(static, constant) registerLaunchListeners

Source:

Register listeners to launch the grading panel.

Methods

(inner) discussionPostMapper(discussion) → {Array}

Source:

For a discussion we need to manipulate it's posts to hide certain UI elements.

Parameters:
Name Type Description
discussion Object
Returns:

name, id, posts

Type
Array

(inner) getContentForUserIdFunction(cmid, experimentalDisplayMode) → {function}

Source:

Curried function with CMID set, this is then used in unified grader as a fetch a users content.

Parameters:
Name Type Description
cmid Number
experimentalDisplayMode Bool
Returns:
Type
function

(inner) getUsersForCmidFunction(cmid, groupID) → {Array}

Source:

Curried function with CMID set, this is then used in unified grader as a fetch users call. The function curried fetches all users in a course for a given CMID.

Parameters:
Name Type Description
cmid Number
groupID Number
Returns:

Array of users for a given context.

Type
Array

(async, inner) launchViewGrading(rootNode, param)

Source:

Launch the Grader.

Parameters:
Name Type Description
rootNode HTMLElement

the root HTML element describing what is to be graded

param object
Properties
Name Type Attributes Default Description
focusOnClose bool <optional>
null

(async, inner) launchWholeForumGrading(rootNode, param)

Source:

Launch the Grader.

Parameters:
Name Type Description
rootNode HTMLElement

the root HTML element describing what is to be graded

param object
Properties
Name Type Attributes Default Description
focusOnClose bool <optional>
null