Interface: BackupDependency
Defined in: areas/backup/contents.ts:21
Something an activity of a backup refers to that the backup doesn't hold, so a restore elsewhere leaves it broken or changed:
restriction: an access condition on another activity's completion (activityId), on a grade item (gradeItemId, another activity's grade or the course's), on a group or a grouping (never in a backup of part of a course): Moodle restores it marked as broken.link: a link in its text to another activity (activityId, itsmodule): restored elsewhere, it points to whatever has that id on the site, or nothing.grade-category: the gradebook category its grade sat in (categoryId), when the backup has no gradebook (any part of a course): restored, its grade goes into the course's top category. The original may have been the top category too: the backup doesn't say.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
activityId? | number | - | areas/backup/contents.ts:25 |
categoryId? | number | - | areas/backup/contents.ts:30 |
condition? | "completion" | "grade" | "group" | "grouping" | For a restriction: what it's on. | areas/backup/contents.ts:24 |
gradeItemId? | number | - | areas/backup/contents.ts:27 |
groupId? | number | - | areas/backup/contents.ts:28 |
groupingId? | number | - | areas/backup/contents.ts:29 |
kind | "link" | "restriction" | "grade-category" | - | areas/backup/contents.ts:22 |
module? | string | - | areas/backup/contents.ts:26 |