Subversion Repositories web.creative

Rev

Rev 20 | Blame | Compare with Previous | Last modification | View Log | Download

<?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;
  }
}