Interface: QuizSlot
Defined in: areas/quizzes/structure.ts:11
A place for a question in a quiz, as quizStructure reads it from the quiz's edit page.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
id | number | Moodle's id for the slot. | areas/quizzes/structure.ts:13 |
mark? | string | - | areas/quizzes/structure.ts:24 |
name | string | - | areas/quizzes/structure.ts:23 |
number? | number | The question's number as shown (descriptions have none). | areas/quizzes/structure.ts:17 |
page | number | - | areas/quizzes/structure.ts:18 |
questionId? | number | The question's id; none for a random slot. | areas/quizzes/structure.ts:20 |
slot | number | The slot's place in the quiz, from 1: what the other functions take as slot. | areas/quizzes/structure.ts:15 |
type | string | The question type ("multichoice"…), "random" for a random question. | areas/quizzes/structure.ts:22 |