allowControllerDispatch()
createTemplateObject()
getBaseViewClassName()
getEffectiveContainerParams()
getExtraContainerData()
getJquerySource()
getNotFoundErrorRoute()
getServerErrorRoute()
getTosUrl()
getViewRenderer()
mergeViewStateChanges()
preLoadData()
preRenderView()
preloadTemplate()
route()
_getCronContainerParams()
_getNavigationContainerParams()
_getStyleLanguageChangerParams()
_handleCustomPreloadedData()
_preloadNoticeTemplates()
$notices
$_dataPreLoadFromRegistry
$_defaultTemplateParams
$_viewStateChanges
Handles front controller dependencies for public-facing pages.
package | XenForo_Mvc |
---|
allowControllerDispatch(mixed $controller, string $action) : boolean
Use this function to ensure, for example, that an admin page only shows an admin controller.
mixed
Likely a XenForo_Controller object, but not guaranteed
string
Name of the action to call
boolean
createTemplateObject(string $templateName, array $params) : \XenForo_Template_Public
string
Name of the template to be used
array
Key-value parameters to pass to the template
getBaseViewClassName() : string
string
getEffectiveContainerParams(array $params, \Zend_Controller_Request_Http $request) : array
This includes combining and specific container params with any global ones. For example, a specific container param may refer to the section the page is in, so this function could load the other options that are specific to this section.
array
Container params from the controller/view
\Zend_Controller_Request_Http
array
getExtraContainerData() : array
array
getJquerySource(boolean $forceLocal) : string
boolean
If true, forces the local version of jQuery
string
getNotFoundErrorRoute() : array
array
Format: [0] => controller name, [1] => actiongetServerErrorRoute() : array
array
Format: [0] => controller name, [1] => actiongetTosUrl() : string
string
getViewRenderer(\Zend_Controller_Response_Http $response, string $responseType, \Zend_Controller_Request_Http $request) : \XenForo_ViewRenderer_Abstract | false
If an invalid type is specified, false is returned.
\Zend_Controller_Response_Http
Response object
string
Type of response
\Zend_Controller_Request_Http
Request object
mergeViewStateChanges(array $states)
inherited_from | \XenForo_Dependencies_Abstract::mergeViewStateChanges() |
---|
array
Key-value pairs
preLoadData()
inherited_from | \XenForo_Dependencies_Abstract::preLoadData() |
---|
preRenderView(\XenForo_ControllerResponse_Abstract $controllerResponse)
preloadTemplate(string $templateName)
string
Template name
route(\Zend_Controller_Request_Http $request) : \XenForo_RouteMatch
see | \global\XenForo_Dependencies_Abstract::route() |
---|
\Zend_Controller_Request_Http
_getCronContainerParams() : array
inherited_from | \XenForo_Dependencies_Abstract::_getCronContainerParams() |
---|
array
_getStyleLanguageChangerParams(\Zend_Controller_Request_Http $request)
_handleCustomPreloadedData(array $data)
array
Data that was loaded. Unsuccessfully loaded items will have a value of null
_preloadNoticeTemplates(array $params, \Zend_Controller_Request_Http $request)
array
\Zend_Controller_Request_Http
$notices : array
$_dataPreLoadFromRegistry : array
You must process this data via _handleCustomPreLoadedData().
$_defaultTemplateParams : array
Conflicting params are overridden by specific template params.
inherited_from | \XenForo_Dependencies_Abstract::$$_defaultTemplateParams |
---|
$_viewStateChanges : array
This will be used to modify how view rendering is done. For example, pages that want an explicit style ID can set it here.
inherited_from | \XenForo_Dependencies_Abstract::$$_viewStateChanges |
---|