Function: enrolmentMethods()
function enrolmentMethods(
context,
siteUrl,
courseId
): Promise<EnrolmentMethod[]>;
Defined in: areas/participants/methods.ts:146
A course's enrolment methods, in the order Moodle tries them: each one's type, name, whether it's
enabled and how many users it enrolled, and from its form the role it gives and, for self enrolment
and guest access, whether it asks for a key (never the key), self enrolment's dates and limit.
Throws EnrolmentError when the person can't manage the course's enrolment methods.
Parameters
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
courseId | number |
Returns
Promise<EnrolmentMethod[]>