Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
/mod/quiz/
FolderUp one level  
Folderaccessrule/
 
Folderamd/
 
Folderbackup/
 
Folderclasses/
 
Folderdb/
 
Folderlang/
 
Folderpix/
 
Folderreport/
 
Foldertemplates/
 
Foldertests/
 
Folderyui/
 
Fileaccessmanager.php      [source] [562 lines]   Classes to enforce the various access rules that can apply to a quiz.
Fileaccessmanager_form.php [source] [71 lines]    Defines the form that limits student's access to attempt a quiz.
Fileaddrandom.php          [source] [140 lines]   Fallback page of /mod/quiz/edit.php add random question dialog, for users who do not use javascript.
Fileaddrandomform.php      [source] [145 lines]   Defines the Moodle forum used to add random questions to the quiz.
Fileattempt.php            [source] [135 lines]   This script displays a particular page of a quiz attempt that is in progress.
Fileattemptlib.php         [source] [2850 lines]  Back-end code for handling data about quizzes and the current user's attempt. There are classes for loading all the information about a quiz and attempts, and for displaying the navigation panel.
Fileautosave.ajax.php      [source] [64 lines]    Thisscript processes ajax auto-save requests during the quiz.
Filecomment.php            [source] [137 lines]   This page allows the teacher to enter a manual grade for a particular question. This page is expected to only be used in a popup window.
Filecronlib.php            [source] [125 lines]   Library code used by quiz cron.
Fileedit.php               [source] [216 lines]   Page to edit quizzes
Fileedit_rest.php          [source] [206 lines]   Rest endpoint for ajax editing of quiz structure.
Fileeditrandom.php         [source] [183 lines]   Page for editing random questions.
Filegrade.php              [source] [94 lines]    This page is the entry page into the quiz UI. Displays information about the quiz to students and teachers, and lets students see their previous attempts.
Fileindex.php              [source] [187 lines]   This script lists all the instances of quiz in a particular course
Filelib.php                [source] [2410 lines]  Library of functions for the quiz module. This contains functions that are called also from outside the quiz module Functions that are only called by the quiz module itself are in {@link locallib.php}
Filelocallib.php           [source] [2646 lines]  Library of functions used by the quiz module. This contains functions that are called from within the quiz module only Functions that are also called by core Moodle are in {@link lib.php} This script also loads the code in {@link questionlib.php} which holds the module-indpendent code for handling questions and which in turn initialises all the questiontype classes.
Filemod_form.php           [source] [639 lines]   Defines the quiz module ettings form.
Fileoverride_form.php      [source] [274 lines]   Settings form for overrides in the quiz module.
Fileoverridedelete.php     [source] [106 lines]   This page handles deleting quiz overrides
Fileoverrideedit.php       [source] [242 lines]   This page handles editing and creation of quiz overrides
Fileoverrides.php          [source] [309 lines]   This page handles listing of quiz overrides
Fileprocessattempt.php     [source] [104 lines]   This page deals with processing responses during an attempt at a quiz.
Filerenderer.php           [source] [1371 lines]  Defines the renderer for the quiz module.
Filerepaginate.php         [source] [50 lines]    Rest endpoint for ajax editing for paging operations on the quiz structure.
Filereport.php             [source] [113 lines]   This script controls the display of the quiz reports.
Filereview.php             [source] [261 lines]   This page prints a review of a particular quiz attempt
Filereviewquestion.php     [source] [122 lines]   This page prints a review of a particular question attempt. This page is expected to only be used in a popup window.
Filesettings.php           [source] [285 lines]   Administration settings definitions for the quiz module.
Filestartattempt.php       [source] [116 lines]   This script deals with starting a new attempt at a quiz.
Filesummary.php            [source] [99 lines]    This page prints a summary of a quiz attempt before it is submitted.
Fileversion.php            [source] [29 lines]    Quiz activity version information.
Fileview.php               [source] [247 lines]   This page is the entry page into the quiz UI. Displays information about the quiz to students and teachers, and lets students see their previous attempts.