Esempio n. 1
0
 /**
  * 
  *
  */
 public function setCache($cache)
 {
     if (is_array($cache)) {
         if (isset($cache['cache']) && class_exists('LiquidCache' . ucwords($cache['cache']))) {
             $classname = 'LiquidCache' . ucwords($cache['cache']);
             self::$_cache = new $classname($cache);
         } else {
             throw new LiquidException('Invalid Cache options!');
         }
     } else {
         self::$_cache = $cache;
     }
 }