Exemplo n.º 1
0
 /**
  * Get the cache manager instance
  */
 public function proxy()
 {
     if (!$this->proxy) {
         // INITIALIZE CACHE MANAGER
         if (pdoMap::coreConfig()->cacheAdapter == null) {
             pdoMap::coreConfig()->cacheAdapter = pdoMap::coreConfig()->cacheAdapters[0];
         }
         $class = 'pdoMap_Cache_Adapters_' . pdoMap::coreConfig()->cacheAdapter;
         $this->proxy = new $class();
         $this->proxy->openSession();
         $this->raise('OpenSession');
     }
     return $this->proxy;
 }
Exemplo n.º 2
0
 /**
  * Get framework configuration instance
  * @returns pdoMap_Core_Config     
  */
 public static function coreConfig()
 {
     if (!self::$coreConfig) {
         self::$coreConfig = new pdoMap_Core_Config();
     }
     return self::$coreConfig;
 }