Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 400 and 403] [Versions 401 and 403]

(no description)

File Size: 156 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

quiz_notify_attempt_manual_grading_completed:: (5 methods):
  get_name()
  get_time()
  set_time_for_testing()
  execute()
  get_list_of_attempts()


Class: quiz_notify_attempt_manual_grading_completed  - X-Ref

Cron Quiz Notify Attempts Graded Task.

get_name()   X-Ref
Get name of schedule task.

return: string

get_time()   X-Ref
To let this class be unit tested, we wrap all accesses to the current time in this method.

return: int The current time.

set_time_for_testing(int $time)   X-Ref
For testing only, pretend the current time is different.

param: int $time The time to set as the current time.

execute()   X-Ref
Execute sending notification for manual graded attempts.


get_list_of_attempts()   X-Ref
Get a number of records as an array of quiz_attempts using a SQL statement.

return: moodle_recordset Of quiz_attempts that need to be processed.