Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [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.