Пример #1
0
 /**
  * Removes the controller objects from the cache.
  *
  * If neither a context ID nor a path is given, the complete cache will be pruned.
  *
  * @param integer $id Context ID the objects have been created with (string of MShop_Context_Item_Interface)
  * @param string $path Path describing the controller to clear, e.g. "product/list/type"
  */
 public static function clear($id = null, $path = null)
 {
     if ($id !== null) {
         if ($path !== null) {
             self::$_controllers[$id][$path] = null;
         } else {
             self::$_controllers[$id] = array();
         }
         return;
     }
     self::$_controllers = array();
 }