Interface: CourseActivity
Defined in: areas/courses/structure.ts:14
An activity of a course, as courseStructure lists it in its section.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
availableToMe | boolean | The person can open it now: false for a student on an activity hidden from students or blocked by a restriction; true for a teacher on those, since they can see hidden activities (Moodle's uservisible, confirmed empirically on Moodle 5.2). | areas/courses/structure.ts:28 |
completion? | object | The person's completion, when the activity tracks it for them. | areas/courses/structure.ts:31 |
completion.complete | boolean | - | areas/courses/structure.ts:31 |
completion.state | "incomplete" | "complete" | "complete-pass" | "complete-fail" | - | areas/courses/structure.ts:31 |
dates? | object[] | With details: as the course page shows them, in the site's language. | areas/courses/structure.ts:33 |
id | number | The course module id, which every activity function takes. | areas/courses/structure.ts:16 |
name | string | - | areas/courses/structure.ts:17 |
restricted | boolean | - | areas/courses/structure.ts:29 |
restriction? | string | With details: the restriction as the course page shows it. | areas/courses/structure.ts:35 |
type | string | The module: "page", "assign", "quiz", "forum", "resource"… | areas/courses/structure.ts:19 |
url? | string | - | areas/courses/structure.ts:20 |
visible | boolean | Shown to students. | areas/courses/structure.ts:22 |