本文整理汇总了PHP中Zend_Controller_Dispatcher_Interface::getDefaultModule方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Controller_Dispatcher_Interface::getDefaultModule方法的具体用法?PHP Zend_Controller_Dispatcher_Interface::getDefaultModule怎么用?PHP Zend_Controller_Dispatcher_Interface::getDefaultModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Controller_Dispatcher_Interface
的用法示例。
在下文中一共展示了Zend_Controller_Dispatcher_Interface::getDefaultModule方法的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;
}