docs/api/source-admin.controller.event.statistics.html
| 1: | <?php | | 2: | namespace Opencart\Admin\Controller\Event; | | 3: | /** | | 4: | * Class Statistics | | 5: | * | | 6: | * @package Opencart\Admin\Controller\Event | | 7: | */ | | 8: | class Statistics extends \Opencart\System\Engine\Controller { | | 9: | /** | | 10: | * addReview | | 11: | * | | 12: | * @param string $route | | 13: | * @param array<int, mixed> $args | | 14: | * @param mixed $output | | 15: | * | | 16: | * @return void | | 17: | * | | 18: | * admin/model/catalog/review/addReview/after | | 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: | * deleteReview | | 28: | * | | 29: | * @param string $route | | 30: | * @param array<int, mixed> $args | | 31: | * @param mixed $output | | 32: | * | | 33: | * @return void | | 34: | * | | 35: | * admin/model/catalog/review/deleteReview/after | | 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: | * addReturn | | 45: | * | | 46: | * @param string $route | | 47: | * @param array<int, mixed> $args | | 48: | * @param mixed $output | | 49: | * | | 50: | * @return void | | 51: | * | | 52: | * admin/model/sale/returns/addReturn/after | | 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: | * deleteReturn | | 62: | * | | 63: | * @param string $route | | 64: | * @param array<int, mixed> $args | | 65: | * @param mixed $output | | 66: | * | | 67: | * @return void | | 68: | * | | 69: | * admin/model/sale/returns/deleteReturn/after | | 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: | |
OpenCart API API documentation generated by ApiGen dev-master