1: | <?php
|
2: | namespace Opencart\Admin\Controller\Event;
|
3: | |
4: | |
5: | |
6: | |
7: |
|
8: | class Statistics extends \Opencart\System\Engine\Controller {
|
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: |
|
20: | public function addReview(string &$route, array &$args, &$output): void {
|
21: | $this->load->model('report/statistics');
|
22: |
|
23: | $this->model_report_statistics->addValue('review', 1);
|
24: | }
|
25: |
|
26: | |
27: | |
28: | |
29: | |
30: | |
31: | |
32: | |
33: | |
34: | |
35: | |
36: |
|
37: | public function deleteReview(string &$route, array &$args, &$output): void {
|
38: | $this->load->model('report/statistics');
|
39: |
|
40: | $this->model_report_statistics->removeValue('review', 1);
|
41: | }
|
42: |
|
43: | |
44: | |
45: | |
46: | |
47: | |
48: | |
49: | |
50: | |
51: | |
52: | |
53: |
|
54: | public function addReturn(string &$route, array &$args, &$output): void {
|
55: | $this->load->model('report/statistics');
|
56: |
|
57: | $this->model_report_statistics->addValue('returns', 1);
|
58: | }
|
59: |
|
60: | |
61: | |
62: | |
63: | |
64: | |
65: | |
66: | |
67: | |
68: | |
69: | |
70: |
|
71: | public function deleteReturn(string &$route, array &$args, &$output): void {
|
72: | $this->load->model('report/statistics');
|
73: |
|
74: | $this->model_report_statistics->removeValue('returns', 1);
|
75: | }
|
76: | }
|
77: | |