Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #3
0
 protected function _getDao()
 {
     return PwLoader::loadDao($this->path, false);
 }
Beispiel #4
0
 public static function importCache($config)
 {
     self::$_cacheService = $config;
 }
Beispiel #5
0
 protected function _getDao()
 {
     return PwLoader::loadDaoFromMap($this->index, $this->daoMap, $this->vkey, false);
 }