Saltar al contenido principal

Interface: CourseActivity

Defined in: areas/courses/structure.ts:14

An activity of a course, as courseStructure lists it in its section.

Properties​

PropertyTypeDescriptionDefined in
availableToMebooleanThe 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?objectThe person's completion, when the activity tracks it for them.areas/courses/structure.ts:31
completion.completeboolean-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
idnumberThe course module id, which every activity function takes.areas/courses/structure.ts:16
namestring-areas/courses/structure.ts:17
restrictedboolean-areas/courses/structure.ts:29
restriction?stringWith details: the restriction as the course page shows it.areas/courses/structure.ts:35
typestringThe module: "page", "assign", "quiz", "forum", "resource"…areas/courses/structure.ts:19
url?string-areas/courses/structure.ts:20
visiblebooleanShown to students.areas/courses/structure.ts:22