diff --git a/lib/fileproxy.php b/lib/fileproxy.php index 46fc2f49c50a39e92768b15c6f2d310a51edb368..70db9cca23c9269849702f4b153737a06406896c 100644 --- a/lib/fileproxy.php +++ b/lib/fileproxy.php @@ -115,4 +115,8 @@ class OC_FileProxy{ } return $result; } + + public static function clearProxies(){ + self::$proxies=array(); + } } \ No newline at end of file diff --git a/lib/hook.php b/lib/hook.php index 83a16106bf0909e03eaadd977d5d66236714242e..b53755310e064f71370f870e87ec872fa90bff06 100644 --- a/lib/hook.php +++ b/lib/hook.php @@ -65,5 +65,22 @@ class OC_Hook{ // return true return true; } + + /** + * clear hooks + * @param string signalclass + * @param string signalname + */ + static public function clear($signalclass='', $signalname=''){ + if($signalclass){ + if($signalname){ + self::$registered[$signalclass][$signalname]=array(); + }else{ + self::$registered[$signalclass]=array(); + } + }else{ + self::$registered=array(); + } + } }