Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
mod_quiz\hook\attempt_state_changed Class Reference

Public Member Functions

 __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.
 

Constructor & Destructor Documentation

◆ __construct()

mod_quiz\hook\attempt_state_changed::__construct ( protected ?\stdClass ?\stdClass $originalattempt,
protected ?\stdClass ?\stdClass $updatedattempt )

Create a new hook instance.

Parameters
?::stdClass$originalattemptThe original database record for the attempt, null if it has just been created.
?::stdClass$updatedattemptThe updated database record of the new attempt, null if it has just been deleted.
Parameters
$originalattemptThe original database record for the attempt, null if it has just been created.
$updatedattemptThe updated database record of the new attempt, null if it has just been deleted.

Member Function Documentation

◆ 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
?::stdClass

◆ 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
?::stdClass

The documentation for this class was generated from the following file: