Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
mod_quiz_overdue_attempt_updater Class Reference

This class holds all the code for automatically updating all attempts that have gone over their time limit. More...

Public Member Functions

 get_list_of_overdue_attempts ($processto)
 
 update_overdue_attempts ($timenow, $processto)
 Do the processing required. More...
 

Detailed Description

This class holds all the code for automatically updating all attempts that have gone over their time limit.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_list_of_overdue_attempts()

mod_quiz_overdue_attempt_updater::get_list_of_overdue_attempts (   $processto)
Return values
moodle_recordsetof quiz_attempts that need to be processed because time has passed. The array is sorted by courseid then quizid.

◆ update_overdue_attempts()

mod_quiz_overdue_attempt_updater::update_overdue_attempts (   $timenow,
  $processto 
)

Do the processing required.

Parameters
int$timenowthe time to consider as 'now' during the processing.
int$processtoonly process attempt with timecheckstate longer ago than this.
Return values
arraywith two elements, the number of attempt considered, and how many different quizzes that was.

The documentation for this class was generated from the following file: