1 <?php
2 /* --------------------------------------------------------------
3 StatisticsServiceInterface.inc.php 2015-10-05 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12 /**
13 * Interface StatisticsServiceInterface
14 *
15 * @category System
16 * @package Statistics
17 * @subpackage Interfaces
18 */
19 interface StatisticsServiceInterface
20 {
21
22 /**
23 * Get the amount of users who are currently online
24 *
25 * @return int
26 */
27 public function getUsersOnline();
28
29
30 /**
31 * Gets the amount of visitors of the current date
32 *
33 * @return int
34 */
35 public function getVisitorsToday();
36
37
38 /**
39 * Gets the amount of visitors of the last week
40 *
41 * @return int
42 */
43 public function getVisitorsLastWeek();
44
45
46 /**
47 * Gets the amount of visitors of the last two week
48 *
49 * @return int
50 */
51 public function getVisitorsLastTwoWeeks();
52
53
54 /**
55 * Gets the amount of visitors of the last month
56 *
57 * @return int
58 */
59 public function getVisitorsLastMonth();
60
61
62 /**
63 * Gets the amount of visitors of the last three months
64 *
65 * @return int
66 */
67 public function getVisitorsLastThreeMonths();
68
69
70 /**
71 * Gets the amount of visitors of the last six months
72 *
73 * @return int
74 */
75 public function getVisitorsLastSixMonths();
76
77
78 /**
79 * Gets the amount of visitors of the last year
80 *
81 * @return int
82 */
83 public function getVisitorsLastYear();
84
85
86 /**
87 * Gets the amount of new customers of the current date
88 *
89 * @return int
90 */
91 public function getNewCustomersToday();
92
93
94 /**
95 * Gets the amount of new customers of the last week
96 *
97 * @return int
98 */
99 public function getNewCustomersLastWeek();
100
101
102 /**
103 * Gets the amount of new customers of the last two week
104 *
105 * @return int
106 */
107 public function getNewCustomersLastTwoWeeks();
108
109
110 /**
111 * Gets the amount of new customers of the last month
112 *
113 * @return int
114 */
115 public function getNewCustomersLastMonth();
116
117
118 /**
119 * Gets the amount of new customers of the last three months
120 *
121 * @return int
122 */
123 public function getNewCustomersLastThreeMonths();
124
125
126 /**
127 * Gets the amount of new customers of the last six months
128 *
129 * @return int
130 */
131 public function getNewCustomersLastSixMonths();
132
133
134 /**
135 * Gets the amount of new customers of the last year
136 *
137 * @return int
138 */
139 public function getNewCustomersLastYear();
140
141
142 /**
143 * Gets the orders count of today
144 *
145 * @return int
146 */
147 public function getOrdersCountToday();
148
149
150 /**
151 * Gets the orders count of the last week
152 *
153 * @return int
154 */
155 public function getOrdersCountLastWeek();
156
157
158 /**
159 * Gets the orders count of the last two weeks
160 *
161 * @return int
162 */
163 public function getOrdersCountLastTwoWeeks();
164
165
166 /**
167 * Gets the orders count of the last month
168 *
169 * @return int
170 */
171 public function getOrdersCountLastMonth();
172
173
174 /**
175 * Gets the orders count of the last three months
176 *
177 * @return int
178 */
179 public function getOrdersCountLastThreeMonths();
180
181
182 /**
183 * Gets the orders count of the last six months
184 *
185 * @return int
186 */
187 public function getOrdersCountLastSixMonths();
188
189
190 /**
191 * Gets the orders count of the last year
192 *
193 * @return int
194 */
195 public function getOrdersCountLastYear();
196
197
198 /**
199 * Gets the conversion rate of today as a formatted number (i.e.: 0,27)
200 *
201 * @return string
202 */
203 public function getConversionRateToday();
204
205
206 /**
207 * Gets the conversion rate of the last week as a formatted number (i.e.: 0,27)
208 *
209 * @return string
210 */
211 public function getConversionRateLastWeek();
212
213
214 /**
215 * Gets the conversion rate of the last two weeks as a formatted number (i.e.: 0,27)
216 *
217 * @return string
218 */
219 public function getConversionRateLastTwoWeeks();
220
221
222 /**
223 * Gets the conversion rate of the last month as a formatted number (i.e.: 0,27)
224 *
225 * @return string
226 */
227 public function getConversionRateLastMonth();
228
229
230 /**
231 * Gets the conversion rate of the last three months as a formatted number (i.e.: 0,27)
232 *
233 * @return string
234 */
235 public function getConversionRateLastThreeMonths();
236
237
238 /**
239 * Gets the conversion rate of the last six months as a formatted number (i.e.: 0,27)
240 *
241 * @return string
242 */
243 public function getConversionRateLastSixMonths();
244
245
246 /**
247 * Gets the conversion rate of the last year as a formatted number (i.e.: 0,27)
248 *
249 * @return string
250 */
251 public function getConversionRateLastYear();
252
253
254 /**
255 * Gets the amount of sales of the current date
256 *
257 * @return string
258 */
259 public function getSalesToday();
260
261
262 /**
263 * Gets the amount of sales of the last week
264 *
265 * @return string
266 */
267 public function getSalesLastWeek();
268
269
270 /**
271 * Gets the amount of sales of the last two week
272 *
273 * @return string
274 */
275 public function getSalesLastTwoWeeks();
276
277
278 /**
279 * Gets the amount of sales of the last month
280 *
281 * @return string
282 */
283 public function getSalesLastMonth();
284
285
286 /**
287 * Gets the amount of sales of the last three months
288 *
289 * @return string
290 */
291 public function getSalesLastThreeMonths();
292
293
294 /**
295 * Gets the amount of sales of the last six months
296 *
297 * @return string
298 */
299 public function getSalesLastSixMonths();
300
301
302 /**
303 * Gets the amount of sales of the last year
304 *
305 * @return string
306 */
307 public function getSalesLastYear();
308
309
310 /**
311 * Gets the average order value of today as a formatted price (i.e.: 1.234,56 EUR)
312 *
313 * @return string
314 */
315 public function getAverageOrderValueToday();
316
317
318 /**
319 * Gets the average order value of the last week as a formatted price (i.e.: 1.234,56 EUR)
320 *
321 * @return string
322 */
323 public function getAverageOrderValueLastWeek();
324
325
326 /**
327 * Gets the average order value of the last two weeks as a formatted price (i.e.: 1.234,56 EUR)
328 *
329 * @return string
330 */
331 public function getAverageOrderValueLastTwoWeeks();
332
333
334 /**
335 * Gets the average order value of the last month as a formatted price (i.e.: 1.234,56 EUR)
336 *
337 * @return string
338 */
339 public function getAverageOrderValueLastMonth();
340
341
342 /**
343 * Gets the average order value of the last three months as a formatted price (i.e.: 1.234,56 EUR)
344 *
345 * @return string
346 */
347 public function getAverageOrderValueLastThreeMonths();
348
349
350 /**
351 * Gets the average order value of the last six months as a formatted price (i.e.: 1.234,56 EUR)
352 *
353 * @return string
354 */
355 public function getAverageOrderValueLastSixMonths();
356
357
358 /**
359 * Gets the average order value of the last year as a formatted price (i.e.: 1.234,56 EUR)
360 *
361 * @return string
362 */
363 public function getAverageOrderValueLastYear();
364 }