Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Keeps track of the analysis results. More...
Public Member Functions | |
__construct (int $modelid, bool $includetarget, array $options) | |
Stores analysis data at instance level. | |
add_analysable_results (array $results) | |
Stores the analysis results. | |
format_result (array $data, core_analytics\local\target\base $target, core_analytics\local\time_splitting\base $timesplitting, core_analytics\analysable $analysable) | |
Formats the result. | |
get () | |
Returns the results of the analysis. | |
retrieve_cached_result (\core_analytics\local\time_splitting\base $timesplitting, core_analytics\analysable $analysable) | |
Retrieves cached results during evaluation. | |
Protected Attributes | |
bool | $includetarget |
int | $modelid |
array | $options |
Analysis options. | |
Keeps track of the analysis results.
core_analytics\local\analysis\result::__construct | ( | int | $modelid, |
bool | $includetarget, | ||
array | $options ) |
Stores analysis data at instance level.
int | $modelid | |
bool | $includetarget | |
array | $options |
|
abstract |
Stores the analysis results.
array | $results |
bool | True if anything was successfully analysed |
Reimplemented in core_analytics\local\analysis\result_array, and core_analytics\local\analysis\result_file.
|
abstract |
Formats the result.
array | $data | |
core_analytics\local\target\base | $target | |
core_analytics\local\time_splitting\base | $timesplitting | |
core_analytics\analysable | $analysable |
mixed | It can be in whatever format the result uses |
Reimplemented in core_analytics\local\analysis\result_array, and core_analytics\local\analysis\result_file.
|
abstract |
Returns the results of the analysis.
array |
Reimplemented in core_analytics\local\analysis\result_array, and core_analytics\local\analysis\result_file.
core_analytics\local\analysis\result::retrieve_cached_result | ( | \core_analytics\local\time_splitting\base | $timesplitting, |
core_analytics\analysable | $analysable ) |
Retrieves cached results during evaluation.
core_analytics\local\time_splitting\base | $timesplitting | |
core_analytics\analysable | $analysable |
mixed | It can be in whatever format the result uses. |
Reimplemented in core_analytics\local\analysis\result_file.