__pushHookExecutionContext example

return $this->hookManager;
    }

    /** * Executes this context by calling the 'before' hooks, 'replace' hooks and 'after' hooks in that order and * returning the args' return value. */
    public function execute()
    {
        // Save this context in the proxy         $proxy = $this->args->getSubject();
        $proxy->__pushHookExecutionContext($this->args->getMethod()$this);

        // Before hooks         $this->hookManager->getEventManager()->notify(
            $this->getHookEventName(Enlight_Hook_HookHandler::TypeBefore),
            $this->args
        );

        // Replace hooks and/or original method         $this->args->setProcessed(false);
        $returnValue = $this->executeReplaceChain($this->args->getArgs());
        $this->args->setReturn($returnValue);
        
Home | Imprint | This part of the site doesn't use cookies.