public function removeHook($hookId)
{
if (!empty($hookId) && strpos($hookId, ':')) {
list($hookClass, $priority, $method) = explode(':', $hookId);
if (empty($hookClass)) {
unset($this->localHooks[$method][$priority]);
} else {
unset(self::$staticHooks[$hookClass][$method][$priority]);
}
}
return $this;
}