Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
quiz_statistics\hook_callbacks Class Reference

Static Public Member Functions

static quiz_attempt_submitted_or_deleted (attempt_state_changed $hook)
 Queue a statistics recalculation when an attempt is submitted or deleting.
 
static quiz_structure_modified (structure_modified $hook)
 Clear the statistics cache for the quiz where the structure was modified.
 

Member Function Documentation

◆ quiz_attempt_submitted_or_deleted()

static quiz_statistics\hook_callbacks::quiz_attempt_submitted_or_deleted ( attempt_state_changed $hook)
static

Queue a statistics recalculation when an attempt is submitted or deleting.

Parameters
attempt_state_changed$hook
Return values
boolTrue if a task was queued.

◆ quiz_structure_modified()

static quiz_statistics\hook_callbacks::quiz_structure_modified ( structure_modified $hook)
static

Clear the statistics cache for the quiz where the structure was modified.

Parameters
structure_modified$hookThe structure_modified hook containing the new structure.
Return values
void

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