src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsOverviewsListCommand.php 1 location
|
@@ 142-154 (lines=13) @@
|
139 |
|
* |
140 |
|
* @return array |
141 |
|
*/ |
142 |
|
private function getOverviewsOfConfig($configId) |
143 |
|
{ |
144 |
|
// get specified config |
145 |
|
$configRepository = $this->em->getRepository(AnalyticsConfig::class); |
146 |
|
$config = $configRepository->find($configId); |
147 |
|
|
148 |
|
if (!$config) { |
149 |
|
throw new \Exception('Unkown config ID'); |
150 |
|
} |
151 |
|
|
152 |
|
// get the overviews |
153 |
|
return $config->getOverviews(); |
154 |
|
} |
155 |
|
|
156 |
|
/** |
157 |
|
* get all overviews |
src/Kunstmaan/DashboardBundle/Command/GoogleAnalyticsSegmentsListCommand.php 1 location
|
@@ 105-117 (lines=13) @@
|
102 |
|
* |
103 |
|
* @return array |
104 |
|
*/ |
105 |
|
private function getSegmentsOfConfig($configId) |
106 |
|
{ |
107 |
|
// get specified config |
108 |
|
$configRepository = $this->em->getRepository(AnalyticsConfig::class); |
109 |
|
$config = $configRepository->find($configId); |
110 |
|
|
111 |
|
if (!$config) { |
112 |
|
throw new \Exception('Unkown config ID'); |
113 |
|
} |
114 |
|
|
115 |
|
// get the segments |
116 |
|
return $config->getSegments(); |
117 |
|
} |
118 |
|
|
119 |
|
/** |
120 |
|
* get all segments |