Current Path : /home/sudancam/.trash/catalog.2/model/setting/ |
Current File : /home/sudancam/.trash/catalog.2/model/setting/module.php |
<?php class ModelSettingModule extends Model { public function getModule($module_id) { $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 array(); } } }