コード例 #1
0
ファイル: cache_manager.php プロジェクト: vazahat/dudex
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return OW_CacheManager
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
コード例 #2
0
ファイル: ow.php プロジェクト: hardikamutech/hammu
 /**
  * @return OW_CacheManager
  */
 public static function getCacheManager()
 {
     return OW_CacheManager::getInstance();
 }