1: | <?php
2: | namespace Opencart\Admin\Model\Extension\Opencart\Report;
3: | /**
4: | * Class Activity
5: | *
6: | * @package Opencart\Admin\Model\Extension\Opencart\Report
7: | */
8: | class Activity extends \Opencart\System\Engine\Model {
9: | /**
10: | * Get Activities
11: | *
12: | * @return array<int, array<string, mixed>>
13: | */
14: | public function getActivities(): array {
15: | $query = $this->db->query("SELECT `key`, `data`, `date_added` FROM `" . DB_PREFIX . "customer_activity` ORDER BY `date_added` DESC LIMIT 0,5");
16: |
17: | return $query->rows;
18: | }
19: | }
20: |

OpenCart API API documentation generated by ApiGen dev-master