當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Controller_Action_HelperBroker::notifyPreDispatch方法代碼示例

本文整理匯總了PHP中Zend_Controller_Action_HelperBroker::notifyPreDispatch方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Controller_Action_HelperBroker::notifyPreDispatch方法的具體用法?PHP Zend_Controller_Action_HelperBroker::notifyPreDispatch怎麽用?PHP Zend_Controller_Action_HelperBroker::notifyPreDispatch使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Zend_Controller_Action_HelperBroker的用法示例。


在下文中一共展示了Zend_Controller_Action_HelperBroker::notifyPreDispatch方法的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::notifyPreDispatch方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。