Changeset 489
- Timestamp:
- 03/13/08 00:07:58 (10 months ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 modified
-
modules/base/graphDashboardTrend.php (modified) (1 diff)
-
modules/base/metrics/dashCoreByDay.php (modified) (1 diff)
-
modules/base/metrics/dashCoreByMonth.php (added)
-
modules/base/reportDashboard.php (modified) (3 diffs)
-
owa_metric.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/base/graphDashboardTrend.php
r342 r489 56 56 'is_browser' => 1, 57 57 'is_robot' => 0), 58 'groupby' => array('day'),58 59 59 'order' => 'ASC' 60 60 )); 61 61 62 62 63 //Graph params 63 64 -
trunk/modules/base/metrics/dashCoreByDay.php
r241 r489 52 52 $this->params['use_summary'] = true; 53 53 54 $this->params['groupby'] = array('day', 'month'); 55 54 56 $this->params['orderby'] = array('year', 'month', 'day'); 55 57 -
trunk/modules/base/reportDashboard.php
r482 r489 61 61 62 62 case "this_year": 63 $data['core_metrics_data'] = $api->getMetric('base.dashCoreBy Day', array(63 $data['core_metrics_data'] = $api->getMetric('base.dashCoreByMonth', array( 64 64 65 'constraints' => array('site_id' => $this->params['site_id']), 66 'groupby' => array('month') 65 'constraints' => array('site_id' => $this->params['site_id']) 67 66 68 67 )); … … 74 73 75 74 'constraints' => array('site_id' => $this->params['site_id']), 76 ' groupby' => array('day')75 'order' => ASC 77 76 78 77 )); … … 86 85 87 86 )); 88 89 //print_r($data['summary_stats_data'] );90 87 91 88 $data['latest_visits'] = $api->getMetric('base.latestVisits', array( -
trunk/owa_metric.php
r396 r489 220 220 case "last_thirty_days": 221 221 222 $bound = mktime(23, 59, 59, $this->time_now['month'], $this->time_now['day'], $this->time_now['year']) - 3600*24*30; 223 224 $this->params['constraints']['timestamp'] = array('operator' => '>=', 'value' => $bound); 222 $end = mktime(0, 0, 0, $this->time_now['month'], $this->time_now['day']+1, $this->time_now['year']); 223 224 $start = mktime(0, 0, 0, $this->time_now['month'], $this->time_now['day']-29, $this->time_now['year']); 225 //$start = $end - 3600*24*29; 226 //$this->params['constraints']['timestamp'] = array('operator' => '>=', 'value' => $bound); 227 228 $this->params['constraints']['timestamp'] = array('operator' => 'BETWEEN', 'start' => $start, 'end' => $end); 229 225 230 226 231 break;
