Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
quiz_statistics\tests\statistics_helper Class Reference

Test helper functions for statistics. More...

Static Public Member Functions

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

Detailed Description

Test helper functions for statistics.

Author
Mark Johnson mark..nosp@m.john.nosp@m.son@c.nosp@m.atal.nosp@m.yst-e.nosp@m.u.ne.nosp@m.t
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

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: