Saltar al contenido principal

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​

PropertyTypeDescriptionDefined in
idnumberMoodle's id for the slot.areas/quizzes/structure.ts:13
mark?string-areas/quizzes/structure.ts:24
namestring-areas/quizzes/structure.ts:23
number?numberThe question's number as shown (descriptions have none).areas/quizzes/structure.ts:17
pagenumber-areas/quizzes/structure.ts:18
questionId?numberThe question's id; none for a random slot.areas/quizzes/structure.ts:20
slotnumberThe slot's place in the quiz, from 1: what the other functions take as slot.areas/quizzes/structure.ts:15
typestringThe question type ("multichoice"…), "random" for a random question.areas/quizzes/structure.ts:22