Saltar al contenido principal

Function: editQuizSlot()

function editQuizSlot(
context,
siteUrl,
activityId,
slot,
__namedParameters
): Promise<QuizChange>;

Defined in: areas/quizzes/structure.ts:238

Changes one slot of a quiz (by its place, from 1): its maximum mark, through the slots' service, and where it is, as dragging it on the edit page does: after another slot (moveAfter, 0 for first) and on a page. Moodle lets the mark change after attempts (it regrades them), not the rest.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
slotnumber
__namedParameters{ maxMark?: number; moveAfter?: number; page?: number; }
__namedParameters.maxMark?number
__namedParameters.moveAfter?number
__namedParameters.page?number

Returns​

Promise<QuizChange>