shop.balmet.com

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

store.php (365B)


      1 <?php
      2 class ModelSettingStore extends Model {
      3 	public function getStores($data = array()) {
      4 		$store_data = $this->cache->get('store');
      5 
      6 		if (!$store_data) {
      7 			$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "store ORDER BY url");
      8 
      9 			$store_data = $query->rows;
     10 
     11 			$this->cache->set('store', $store_data);
     12 		}
     13 
     14 		return $store_data;
     15 	}
     16 }