本文整理匯總了PHP中Zend_Controller_Dispatcher_Interface::getDefaultAction方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Controller_Dispatcher_Interface::getDefaultAction方法的具體用法?PHP Zend_Controller_Dispatcher_Interface::getDefaultAction怎麽用?PHP Zend_Controller_Dispatcher_Interface::getDefaultAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Controller_Dispatcher_Interface
的用法示例。
在下文中一共展示了Zend_Controller_Dispatcher_Interface::getDefaultAction方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _setRequestKeys
/**
* Set request keys based on values in request object
*
* @return void
*/
protected function _setRequestKeys()
{
if (null !== $this->_request) {
$this->_moduleKey = $this->_request->getModuleKey();
$this->_controllerKey = $this->_request->getControllerKey();
$this->_actionKey = $this->_request->getActionKey();
}
if (null !== $this->_dispatcher) {
$this->_defaults += array($this->_controllerKey => $this->_dispatcher->getDefaultControllerName(), $this->_actionKey => $this->_dispatcher->getDefaultAction(), $this->_moduleKey => $this->_dispatcher->getDefaultModule());
}
$this->_keysSet = true;
}
示例2: cloneFromDispatcher
public static function cloneFromDispatcher(Zend_Controller_Dispatcher_Interface $dispatcher)
{
$new = new self($dispatcher->getParams());
$new->setControllerDirectory($dispatcher->getControllerDirectory());
$new->setDefaultModule($dispatcher->getDefaultModule());
$new->setDefaultControllerName($dispatcher->getDefaultControllerName());
$new->setDefaultAction($dispatcher->getDefaultAction());
$new->setPathDelimiter($dispatcher->getPathDelimiter());
return $new;
}