Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (null === self::$loc) {
         self::$loc = new self();
     }
     return self::$loc;
 }
Ejemplo n.º 2
0
 /**
  * @return ZendCacheDriver
  */
 protected static function getCache()
 {
     if (is_null(self::$cache)) {
         self::$cache = new ZendCacheDriver('cache/expensive');
     }
     return self::$cache;
 }