|
| __construct (protected ?\stdClass ?\stdClass $originalattempt, protected ?\stdClass ?\stdClass $updatedattempt,) |
| Create a new hook instance.
|
|
| get_original_attempt () |
| Get the original attempt, null if it has just been created.
|
|
| get_updated_attempt () |
| Get the updated attempt, null if it has just been deleted.
|
|
◆ __construct()
mod_quiz\hook\attempt_state_changed::__construct |
( |
protected ?\stdClass ?\stdClass | $originalattempt, |
|
|
protected ?\stdClass ?\stdClass | $updatedattempt ) |
Create a new hook instance.
- Parameters
-
?\stdClass | $originalattempt | The original database record for the attempt, null if it has just been created. |
?\stdClass | $updatedattempt | The updated database record of the new attempt, null if it has just been deleted. |
- Parameters
-
$originalattempt | The original database record for the attempt, null if it has just been created. |
$updatedattempt | The updated database record of the new attempt, null if it has just been deleted. |
◆ get_original_attempt()
mod_quiz\hook\attempt_state_changed::get_original_attempt |
( |
| ) |
|
Get the original attempt, null if it has just been created.
- Return values
-
◆ get_updated_attempt()
mod_quiz\hook\attempt_state_changed::get_updated_attempt |
( |
| ) |
|
Get the updated attempt, null if it has just been deleted.
- Return values
-
The documentation for this class was generated from the following file:
- mod/quiz/classes/hook/attempt_state_changed.php