예제 #1
0
파일: Factory.php 프로젝트: jinghm318/ko
 private static function _OCreateDao_mcache($aConfig, $aParam)
 {
     if ($aConfig['global']) {
         $dao = Ko_Data_MCAgent::OInstance(self::_VGetValue($aConfig, 'name'));
     } else {
         $dao = new Ko_Dao_MCacheEx($aParam['module'], self::_VGetValue($aConfig, 'name'));
     }
     return $dao;
 }
예제 #2
0
 private function _oGetMCache()
 {
     if (is_null($this->_oMCache)) {
         $this->_oMCache = Ko_Data_MCAgent::OInstance($this->_sMCacheName);
     }
     return $this->_oMCache;
 }
예제 #3
0
파일: MCacheEx.php 프로젝트: AllenLyu/ko
 public function __construct($sModuleName, $sName = '')
 {
     parent::__construct($sModuleName);
     $this->_oMCache = Ko_Data_MCAgent::OInstance($sName);
 }