Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: