shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

module.php (331B)


      1 <?php
      2 class ModelSettingModule extends Model {
      3 	public function getModule($module_id) {
      4 		$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "module WHERE module_id = '" . (int)$module_id . "'");
      5 		
      6 		if ($query->row) {
      7 			return json_decode($query->row['setting'], true);
      8 		} else {
      9 			return array();	
     10 		}
     11 	}		
     12 }