Skip to content
Snippets Groups Projects
Commit b40f9670 authored by Robin Appelman's avatar Robin Appelman
Browse files

allow clearing hooks and fileproxies

parent 736739bb
No related branches found
No related tags found
No related merge requests found
......@@ -115,4 +115,8 @@ class OC_FileProxy{
}
return $result;
}
public static function clearProxies(){
self::$proxies=array();
}
}
\ No newline at end of file
......@@ -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();
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment