<?php
class ModelSettingEvent extends Model {
    public function getEvents(): array {
        $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "event` WHERE `trigger` LIKE 'catalog/%' AND `status` = '1' ORDER BY `sort_order` ASC");

        return $query->rows;
    }
}