Skip to main content

Function: participationReport()

function participationReport(
context,
siteUrl,
courseId,
activityId,
__namedParameters?
): Promise<ActivityParticipant[]>;

Defined in: areas/reports/reports.ts:369

Who took part in an activity of a course, as its participation report counts it: everyone with the role (every role the report offers, unless roleId), with how many actions they made there (views or posts only, when action; since since, when given); those who did nothing come with 0.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
courseIdnumber
activityIdnumber
__namedParameters{ action?: "view" | "post"; roleId?: number; since?: Date; }
__namedParameters.action?"view" | "post"
__namedParameters.roleId?number
__namedParameters.since?Date

Returns​

Promise<ActivityParticipant[]>