This class holds all the code for automatically updating all attempts that have gone over their time limit.
More...
This class holds all the code for automatically updating all attempts that have gone over their time limit.
- Copyright
- 2012 the Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_list_of_overdue_attempts()
mod_quiz_overdue_attempt_updater::get_list_of_overdue_attempts |
( |
|
$processto | ) |
|
- Return values
-
moodle_recordset | of 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 | $timenow | the time to consider as 'now' during the processing. |
int | $processto | only process attempt with timecheckstate longer ago than this. |
- Return values
-
array | with 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: