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()
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;
}
}