src/Kunstmaan/DashboardBundle/Command/Helper/Analytics/AbstractAnalyticsCommandHelper.php 1 location
|
@@ 80-93 (lines=14) @@
|
77 |
|
* |
78 |
|
* @return array the resultset |
79 |
|
*/ |
80 |
|
protected function executeQuery(AnalyticsOverview $overview, $metrics) { |
81 |
|
$timestamps = $this->getTimestamps($overview); |
82 |
|
$extra = $this->getExtra($overview); |
83 |
|
|
84 |
|
// execute query |
85 |
|
$results = $this->query->getResultsByDate( |
86 |
|
$timestamps['begin'], |
87 |
|
$timestamps['end'], |
88 |
|
$metrics, |
89 |
|
$extra |
90 |
|
); |
91 |
|
|
92 |
|
return $results->getRows(); |
93 |
|
} |
94 |
|
|
95 |
|
public abstract function getData(&$overview); |
96 |
|
|
src/Kunstmaan/DashboardBundle/Command/Helper/Analytics/GoalCommandHelper.php 1 location
|
@@ 68-81 (lines=14) @@
|
65 |
|
* |
66 |
|
* @return mixed |
67 |
|
*/ |
68 |
|
private function requestGoalResults(AnalyticsOverview $overview, $metrics, $dimensions) |
69 |
|
{ |
70 |
|
$timestamps = $this->getTimestamps($overview); |
71 |
|
|
72 |
|
// execute query |
73 |
|
$results = $this->query->getResultsByDate( |
74 |
|
$timestamps['begin'], |
75 |
|
$timestamps['end'], |
76 |
|
$metrics, |
77 |
|
$dimensions |
78 |
|
); |
79 |
|
|
80 |
|
return $results->getRows(); |
81 |
|
} |
82 |
|
|
83 |
|
/** |
84 |
|
* get data and save it for the overview |