Function CMSStatsProvider->preprocess_raw_data

Definitions

sources/stats.php

  • Preprocess raw data in the database into something we can efficiently draw graphs/conclusions from.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$start_time TIME No No required parameter N/A N/A Start timestamp
$end_time TIME No No required parameter N/A N/A End timestamp
&$data_buckets array Yes No required parameter N/A N/A Map of data buckets; a map of bucket name to nested maps with the following maps in sequence: 'month', 'pivot', 'value' (then further map data) ; extended and returned by reference

Preview

Code (PHP)

/**
 * Preprocess raw data in the database into something we can efficiently draw graphs/conclusions from.
 *
 * @param  TIME $start_time Start timestamp
 * @param  TIME $end_time End timestamp
 * @param  array $data_buckets Map of data buckets; a map of bucket name to nested maps with the following maps in sequence: 'month', 'pivot', 'value' (then further map data) ; extended and returned by reference
 */

public function preprocess_raw_data(int $start_time, int $end_time, array &$data_buckets)