Ekdant-Online-Store/extension/opencart/admin/model/report/activity.php
2024-08-06 18:06:00 +05:45

18 lines
452 B
PHP

<?php
namespace Opencart\Admin\Model\Extension\Opencart\Report;
/**
* Class Activity
*
* @package Opencart\Admin\Model\Extension\Opencart\Report
*/
class Activity extends \Opencart\System\Engine\Model {
/**
* @return array
*/
public function getActivities(): array {
$query = $this->db->query("SELECT `key`, `data`, `date_added` FROM `" . DB_PREFIX . "customer_activity` ORDER BY `date_added` DESC LIMIT 0,5");
return $query->rows;
}
}