aboutsummaryrefslogtreecommitdiffstats
path: root/public/catalog/model/setting/store.php
blob: 32711162dcfee1813228603548334cca98c9ef5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
	}
}