Hierarchy

  • ReturnsQuizzesItem

Properties

allowofflineattempts: null | number

Whether to allow the quiz to be attempted offline in the mobile app

attemptonlast: null | number

Whether subsequent attempts start from the answer to the previous attempt (1) or start blank (0).

attempts: null | number

The maximum number of attempts a student is allowed.

autosaveperiod: null | number

Auto-save delay

browsersecurity: null | string

Restriciton on the browser the student must use. E.g. 'securewindow'.

canredoquestions: null | number

Allows students to redo any completed question within a quiz attempt.

completionattemptsexhausted: null | number

Mark quiz complete when the student has exhausted the maximum number of attempts

completionpass: null | number

Whether to require passing grade

course: null | number

Course id

coursemodule: null | number

Course module id

decimalpoints: null | number

Number of decimal points to use when displaying grades.

delay1: null | number

Delay that must be left between the first and second attempt, in seconds.

delay2: null | number

Delay that must be left between the second and subsequent attempt, in seconds.

graceperiod: null | number

The amount of time (in seconds) after the time limit runs out during which attempts can still be submitted, if overduehandling is set to allow it.

grade: null | number

The total that the quiz overall grade is scaled to be out of.

grademethod: null | number

One of the values QUIZ_GRADEHIGHEST, QUIZ_GRADEAVERAGE, QUIZ_ATTEMPTFIRST or QUIZ_ATTEMPTLAST.

groupingid: null | number

Group id

groupmode: null | number

Group mode

hasfeedback: null | number

Whether the quiz has any non-blank feedback text

hasquestions: null | number

Whether the quiz has questions

id: null | number

Activity instance id

intro: null | string

Activity introduction

Files in the introduction

introformat: null | number

intro format (1 = HTML, 0 = MOODLE, 2 = PLAIN, or 4 = MARKDOWN

lang: null | string

Forced activity language

name: null | string

Activity name

navmethod: null | string

Any constraints on how the user is allowed to navigate around the quiz. Currently recognised values are 'free' and 'seq'.

overduehandling: null | string

The method used to handle overdue attempts. 'autosubmit', 'graceperiod' or 'autoabandon'.

password: null | string

A password that the student must enter before starting or continuing a quiz attempt.

preferredbehaviour: null | string

The behaviour to ask questions to use.

questiondecimalpoints: null | number

Number of decimal points to use when displaying question grades. (-1 means use decimalpoints.)

questionsperpage: null | number

How often to insert a page break when editing the quiz, or when shuffling the question order.

reviewattempt: null | number

Whether users are allowed to review their quiz attempts at various times. This is a bit field, decoded by the \mod_quiz\question\display_options class. It is formed by ORing together the constants defined there.

reviewcorrectness: null | number

Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt.

reviewgeneralfeedback: null | number

Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt.

reviewmarks: null | number

Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt.

reviewoverallfeedback: null | number

Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt.

reviewrightanswer: null | number

Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt.

reviewspecificfeedback: null | number

Whether users are allowed to review their quiz attempts at various times. A bit field, like reviewattempt.

section: null | number

Course section id

showblocks: null | number

Whether blocks should be shown on the attempt.php and review.php pages.

showuserpicture: null | number

Option to show the user's picture during the attempt and on the review page.

shuffleanswers: null | number

Whether the parts of the question should be shuffled, in those question types that support it.

subnet: null | string

Used to restrict the IP addresses from which this quiz can be attempted. The format is as requried by the address_in_subnet function.

sumgrades: null | number

The total of all the question instance maxmarks.

timeclose: null | number

The time when this quiz closes. (0 = no restriction.)

timecreated: null | number

The time when the quiz was added to the course.

timelimit: null | number

The time limit for quiz attempts, in seconds.

timemodified: null | number

Last modified time.

timeopen: null | number

The time when this quiz opens. (0 = no restriction.)

visible: null | boolean

Visible

Generated using TypeDoc