Skip to main content

Function: forumGrades()

function forumGrades(
context,
siteUrl,
activityId,
__namedParameters?
): Promise<ForumGrades>;

Defined in: areas/forums/grading.ts:106

Everyone's whole-forum grade in a forum graded as a whole, as its grader shows them: one per person it can grade (only the active ones when the forum says so), with how it's graded. One service call per person. Throws NotAForumError for another activity, and GradingError when the forum isn't graded as a whole or uses an advanced grading method.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
__namedParameters{ groupId?: number; }
__namedParameters.groupId?number

Returns​

Promise<ForumGrades>