Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
quiz_statistics\tests\statistics_helper Class Reference

Static Public Member Functions

static run_pending_recalculation_tasks (bool $discardoutput=false)
 Run any ad-hoc recalculation tasks that have been scheduled.
 

Member Function Documentation

◆ run_pending_recalculation_tasks()

static quiz_statistics\tests\statistics_helper::run_pending_recalculation_tasks ( bool $discardoutput = false)
static

Run any ad-hoc recalculation tasks that have been scheduled.

We need a special function to do this as the tasks are deferred by one hour, so we need to pass a custom $timestart argument.

Parameters
bool$discardoutputCapture and discard output from executed tasks?
Return values
void

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