diff options
author | Jesús <heckyel@hyperbola.info> | 2019-08-18 21:14:58 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2019-08-18 21:14:58 -0500 |
commit | 2eed7b082f83630301e51f57ca8394de228a8605 (patch) | |
tree | 1d19962d22d30f99317d9276e4bae7744fc93fc2 /public/admin/controller/event/statistics.php | |
download | librecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.lz librecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.xz librecart-2eed7b082f83630301e51f57ca8394de228a8605.zip |
first commit
Diffstat (limited to 'public/admin/controller/event/statistics.php')
-rw-r--r-- | public/admin/controller/event/statistics.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/public/admin/controller/event/statistics.php b/public/admin/controller/event/statistics.php new file mode 100644 index 0000000..46e55e2 --- /dev/null +++ b/public/admin/controller/event/statistics.php @@ -0,0 +1,16 @@ +<?php +class ControllerEventStatistics extends Controller { + // model/catalog/review/removeReview/after + public function removeReview(&$route, &$args, &$output) { + $this->load->model('setting/statistics'); + + $this->model_report_statistics->addValue('review', 1); + } + + // model/sale/return/removeReturn/after + public function removeReturn(&$route, &$args, &$output) { + $this->load->model('setting/statistics'); + + $this->model_report_statistics->addValue('return', 1); + } +}
\ No newline at end of file |