You are here

function _statspro_path_aggregated_get_aggregators in Statistics Pro 6.2

Returns a path aggregator array in priority order.

Return value

array Array of path aggregators in priority order.

1 call to _statspro_path_aggregated_get_aggregators()
_statspro_path_aggregated_get_aggregated_data_from_result in ./statspro_path_aggregated.inc

File

./statspro_path_aggregated.inc, line 645

Code

function _statspro_path_aggregated_get_aggregators() {
  $result = db_query('SELECT
    n.spaid, n.name, n.paths
    FROM {statspro_path_aggregator} n
    ORDER BY n.weight, n.name, n.spaid');
  $path_aggregators = array();
  while ($path_aggregator = db_fetch_array($result)) {
    $path_aggregators[] = array(
      'name' => $path_aggregator['name'],
      'paths' => $path_aggregator['paths'],
      'spaid' => (int) $path_aggregator['spaid'],
      'access_counter' => 0,
      'hosts' => array(),
      'sessions' => array(),
    );
  }
  return $path_aggregators;
}