Esempio n. 1
0
 public function getCache()
 {
     $cache = new PwCache();
     $cache->mergeKeys(Wekit::V('cacheKeys'));
     if (Wekit::V('dbcache') && $cache->isDbCache()) {
         PwLoader::importCache(Wekit::S('cacheService'));
     }
     return $cache;
 }
Esempio n. 2
0
 /**
  * 获取Dao组合(单例)
  *
  * @param int $index 索引键
  * @param array $daoMap dao列表
  * @param string $vkey 区分符
  * @return object
  */
 public static function loadDaoFromMap($index, $daoMap, $vkey)
 {
     return PwLoader::loadDaoFromMap($index, $daoMap, $vkey);
 }
Esempio n. 3
0
 protected function _getDao()
 {
     return PwLoader::loadDao($this->path, false);
 }
Esempio n. 4
0
 public static function importCache($config)
 {
     self::$_cacheService = $config;
 }
Esempio n. 5
0
 protected function _getDao()
 {
     return PwLoader::loadDaoFromMap($this->index, $this->daoMap, $this->vkey, false);
 }