当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Controller_Action_HelperBroker::notifyPostDispatch方法代码示例

本文整理汇总了PHP中Zend_Controller_Action_HelperBroker::notifyPostDispatch方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Controller_Action_HelperBroker::notifyPostDispatch方法的具体用法?PHP Zend_Controller_Action_HelperBroker::notifyPostDispatch怎么用?PHP Zend_Controller_Action_HelperBroker::notifyPostDispatch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Controller_Action_HelperBroker的用法示例。


在下文中一共展示了Zend_Controller_Action_HelperBroker::notifyPostDispatch方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dispatch

 /**
  * Dispatch the requested action
  *
  * @param string $action Method name of action
  * @return void
  */
 public function dispatch($action)
 {
     // Notify helpers of action preDispatch state
     $this->_helper->notifyPreDispatch();
     $this->preDispatch();
     if ($this->getRequest()->isDispatched()) {
         if (null === $this->_classMethods) {
             $this->_classMethods = get_class_methods($this);
         }
         // If pre-dispatch hooks introduced a redirect then stop dispatch
         // @see ZF-7496
         if (!$this->getResponse()->isRedirect()) {
             // preDispatch() didn't change the action, so we can continue
             if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
                 if ($this->getInvokeArg('useCaseSensitiveActions')) {
                     trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
                 }
                 $this->{$action}();
             } else {
                 $this->__call($action, array());
             }
         }
         $this->postDispatch();
     }
     // whats actually important here is that this action controller is
     // shutting down, regardless of dispatching; notify the helpers of this
     // state
     $this->_helper->notifyPostDispatch();
 }
开发者ID:kobmaki,项目名称:icingaweb2,代码行数:35,代码来源:Action.php

示例2: dispatch

 /**
  * Dispatch the requested action
  * 
  * @param string $action Method name of action
  * @return void
  */
 public function dispatch($action)
 {
     // Notify helpers of action preDispatch state
     $this->_helper->notifyPreDispatch();
     $this->preDispatch();
     if ($this->getRequest()->isDispatched()) {
         // preDispatch() didn't change the action, so we can continue
         $this->{$action}();
         $this->postDispatch();
     }
     // whats actually important here is that this action controller is
     // shutting down, regardless of dispatching; notify the helpers of this
     // state
     $this->_helper->notifyPostDispatch();
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:21,代码来源:Action.php


注:本文中的Zend_Controller_Action_HelperBroker::notifyPostDispatch方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。