diff options
Diffstat (limited to 'public/catalog/model/setting/store.php')
-rw-r--r-- | public/catalog/model/setting/store.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/public/catalog/model/setting/store.php b/public/catalog/model/setting/store.php new file mode 100644 index 0000000..3271116 --- /dev/null +++ b/public/catalog/model/setting/store.php @@ -0,0 +1,16 @@ +<?php +class ModelSettingStore extends Model { + public function getStores($data = array()) { + $store_data = $this->cache->get('store'); + + if (!$store_data) { + $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "store ORDER BY url"); + + $store_data = $query->rows; + + $this->cache->set('store', $store_data); + } + + return $store_data; + } +}
\ No newline at end of file |