Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

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

Defines 1 class

get_reopen_attempt_confirmation:: (3 methods):
  execute_parameters()
  execute()
  execute_returns()


Class: get_reopen_attempt_confirmation  - X-Ref

Web service to check a quiz attempt state, and return a confirmation message if it can be reopened now.

The use must have the 'mod/quiz:reopenattempts' capability and the attempt
must (at least for now) be in the 'Never submitted' state (quiz_attempt::ABANDONED).

execute_parameters()   X-Ref
Declare the method parameters.

return: external_function_parameters

execute(int $attemptid)   X-Ref
Check a quiz attempt state, and return a confirmation message method implementation.

param: int $attemptid the id of the attempt to reopen.
return: string a suitable confirmation message (HTML), if the attempt is suitable to be reopened.

execute_returns()   X-Ref
Define the webservice response.

return: external_description