first commit
This commit is contained in:
17
catalog/model/setting/event.php
Normal file
17
catalog/model/setting/event.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user