Ekdant-Online-Store/catalog/model/setting/event.php

18 lines
382 B
PHP
Raw Normal View History

2024-08-06 12:21:00 +00:00
<?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;
}
}