- Description:
 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
 
This module will tie together all of the different calls the gradable module will make.
Members
(static, constant) registerLaunchListeners
- Description:
 Register listeners to launch the grading panel.
- Source:
 
Register listeners to launch the grading panel.
Methods
(inner) discussionPostMapper(discussion) → {Array}
- Description:
 For a discussion we need to manipulate it's posts to hide certain UI elements.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
discussion | 
            
            Object | 
Returns:
name, id, posts
- Type
 - Array
 
(inner) getContentForUserIdFunction(cmid, experimentalDisplayMode) → {function}
- Description:
 Curried function with CMID set, this is then used in unified grader as a fetch a users content.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
cmid | 
            
            Number | |
experimentalDisplayMode | 
            
            Bool | 
Returns:
- Type
 - function
 
(inner) getGradableUsersForCourseidFunction(courseID, groupID, onlyActive) → {Array}
- Description:
 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.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
courseID | 
            
            Number | |
groupID | 
            
            Number | |
onlyActive | 
            
            Boolean | Whether to fetch only the active enrolled users or all enrolled users in the course.  | 
        
Returns:
Array of users for a given context.
- Type
 - Array
 
(async, inner) launchViewGrading(rootNode, param)
- Description:
 Launch the Grader.
- Source:
 
Parameters:
| Name | Type | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
rootNode | 
            
            HTMLElement | the root HTML element describing what is to be graded  | 
        ||||||||||
param | 
            
            object | 
                Properties
  | 
        
(async, inner) launchWholeForumGrading(rootNode, param)
- Description:
 Launch the Grader.
- Source:
 
Parameters:
| Name | Type | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
rootNode | 
            
            HTMLElement | the root HTML element describing what is to be graded  | 
        ||||||||||
param | 
            
            object | 
                Properties
  |