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