first commit

This commit is contained in:
sujan
2024-08-06 18:06:00 +05:45
commit a2fa49071a
2745 changed files with 391199 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<?php
namespace Opencart\Catalog\Model\Setting;
/**
* Class Module
*
* @package Opencart\Catalog\Model\Setting
*/
class Module extends \Opencart\System\Engine\Model {
/**
* @param int $module_id
*
* @return array
*/
public function getModule(int $module_id): array {
$query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "module` WHERE `module_id` = '" . (int)$module_id . "'");
if ($query->row) {
return json_decode($query->row['setting'], true);
} else {
return [];
}
}
}