You are here

function _statspro_path_aggregated_add_access in Statistics Pro 6.2

Increments the counters on the $key path aggregator.

Parameters

array $path_aggregators:

int $key:

string $sid:

string $host:

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

File

./statspro_path_aggregated.inc, line 673

Code

function _statspro_path_aggregated_add_access(&$path_aggregators, $key, $sid, $host) {
  $path_aggregators[$key]['access_counter']++;
  if (isset($path_aggregators[$key]['sessions'][$sid])) {
    $path_aggregators[$key]['sessions'][$sid]++;
  }
  else {
    $path_aggregators[$key]['sessions'][$sid] = 1;
  }
  if (isset($path_aggregators[$key]['hosts'][$host])) {
    $path_aggregators[$key]['hosts'][$host]++;
  }
  else {
    $path_aggregators[$key]['hosts'][$host] = 1;
  }
}