getHookEvent example

/** * Checks if the given class has registered hooks. * If a method is given the examination is limited to the method. * * @param string $class * @param string $method * * @return bool */
    public function hasHooks($class$method)
    {
        return $this->eventManager->hasListeners($this->getHookEvent($class$method, Enlight_Hook_HookHandler::TypeReplace))
            || $this->eventManager->hasListeners($this->getHookEvent($class$method, Enlight_Hook_HookHandler::TypeBefore))
            || $this->eventManager->hasListeners($this->getHookEvent($class$method, Enlight_Hook_HookHandler::TypeAfter));
    }

    /** * @param string $class * @param string $method * @param string $type * * @return string */
    
Home | Imprint | This part of the site doesn't use cookies.