Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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] [72 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] [136 lines]   This script displays a particular page of a quiz attempt that is in progress.
Fileattemptlib.php         [source] [2875 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] [75 lines]    Thisscript processes ajax auto-save requests during the quiz.
Filecomment.php            [source] [138 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.
Filedeprecatedlib.php      [source] [134 lines]   List of deprecated mod_quiz functions.
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] [2456 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] [2719 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] [683 lines]   Defines the quiz module ettings form.
Fileoverride_form.php      [source] [288 lines]   Settings form for overrides in the quiz module.
Fileoverridedelete.php     [source] [118 lines]   This page handles deleting quiz overrides
Fileoverrideedit.php       [source] [246 lines]   This page handles editing and creation of quiz overrides
Fileoverrides.php          [source] [362 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] [1450 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] [265 lines]   This page prints a review of a particular quiz attempt
Filereviewquestion.php     [source] [123 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] [101 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] [257 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.