function _statspro_path_aggregated_get_aggregated_data in Statistics Pro 6.2
1 call to _statspro_path_aggregated_get_aggregated_data()
File
- ./
statspro_path_aggregated.inc, line 601
Code
function _statspro_path_aggregated_get_aggregated_data($period) {
require_once drupal_get_path('module', 'statspro') . '/statspro.inc';
$statspro = new StatsPro();
$qt_days = $statspro
->get_qt_days_per_period($period);
$minimal_execution_time = STATSPRO_PATH_AGGREGATED_EXECUTION_SECONDS_PER_DAY * $qt_days;
if ($minimal_execution_time > ini_get('max_execution_time')) {
set_time_limit($minimal_execution_time);
}
$sql_where = $statspro
->get_period('a.timestamp', TRUE, $period);
$result = db_query("SELECT\n a.sid, a.path, a.hostname\n FROM {accesslog} a\n WHERE %s", $sql_where);
$path_aggregated_data = _statspro_path_aggregated_get_aggregated_data_from_result($result);
return $path_aggregated_data;
}