Web service to check a quiz attempt state, and return a confirmation message if it can be reopened now.
More...
|
| static | execute (int $attemptid) |
| | Check a quiz attempt state, and return a confirmation message method implementation.
|
| |
| static | execute_parameters () |
| | Declare the method parameters.
|
| |
| static | execute_returns () |
| | Define the webservice response.
|
| |
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).
- Copyright
- 2023 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ execute()
| static mod_quiz\external\get_reopen_attempt_confirmation::execute |
( |
int | $attemptid | ) |
|
|
static |
Check a quiz attempt state, and return a confirmation message method implementation.
- Parameters
-
| int | $attemptid | the id of the attempt to reopen. |
- Return values
-
| string | a suitable confirmation message (HTML), if the attempt is suitable to be reopened. |
- Exceptions
-
| Exception | an appropriate exception if the attempt cannot be reopened now. |
◆ execute_parameters()
| static mod_quiz\external\get_reopen_attempt_confirmation::execute_parameters |
( |
| ) |
|
|
static |
Declare the method parameters.
- Return values
-
| external_function_parameters | |
◆ execute_returns()
| static mod_quiz\external\get_reopen_attempt_confirmation::execute_returns |
( |
| ) |
|
|
static |
Define the webservice response.
- Return values
-
The documentation for this class was generated from the following file: