예제 #1
0
파일: cache.php 프로젝트: richmahn/Door43
 /**
  * Gets the singleton
  * @return door43Cache
  */
 static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new door43Cache();
     }
     return self::$instance;
 }
예제 #2
0
 public function getCache()
 {
     require_once 'cache.php';
     if (empty(self::$cache)) {
         self::$cache = door43Cache::getInstance();
     }
     return self::$cache;
 }