This module will tie together all of the different calls the gradable module will make.
- Source:
- Copyright:
- 2019 Andrew Nicols
- 2019 Andrew Nicols
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
(static, constant) registerLaunchListeners
Register listeners to launch the grading panel.
Methods
(inner) discussionPostMapper(discussion) → {Array}
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}
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}
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)
Launch the Grader.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
rootNode |
HTMLElement | the root HTML element describing what is to be graded |
||||||||||
param |
object |
Properties
|
(async, inner) launchWholeForumGrading(rootNode, param)
Launch the Grader.
Parameters:
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
rootNode |
HTMLElement | the root HTML element describing what is to be graded |
||||||||||
param |
object |
Properties
|