Ekdant-Online-Store/catalog/model/setting/event.php
2024-08-06 18:06:00 +05:45

18 lines
382 B
PHP

<?php
namespace Opencart\Catalog\Model\Setting;
/**
* Class Event
*
* @package Opencart\Catalog\Model\Setting
*/
class Event extends \Opencart\System\Engine\Model {
/**
* @return array
*/
public function getEvents(): array {
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "event` WHERE `status` = '1' ORDER BY `sort_order` ASC");
return $query->rows;
}
}