allowControllerDispatch()
createTemplateObject()
getBaseViewClassName()
getEffectiveContainerParams()
getExtraContainerData()
getJquerySource()
getNotFoundErrorRoute()
getServerErrorRoute()
getViewRenderer()
mergeViewStateChanges()
preLoadData()
preRenderView()
preloadTemplate()
route()
_getCronContainerParams()
_handleCustomPreloadedData()
$_dataPreLoadFromRegistry
$_defaultTemplateParams
$_viewStateChanges
Interface for objects that can be passed into the front controller to load all of its dependencies.
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_Abstract
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] => actiongetViewRenderer(\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)
array
Key-value pairs
preLoadData()
preRenderView(\XenForo_ControllerResponse_Abstract $controllerResponse)
preloadTemplate(string $templateName)
string
Template name
_getCronContainerParams() : array
array
_handleCustomPreloadedData(array $data)
array
Data that was loaded. Unsuccessfully loaded items will have a value of null
$_dataPreLoadFromRegistry : array
You must process this data via _handleCustomPreLoadedData().
$_defaultTemplateParams : array
Conflicting params are overridden by specific template params.
$_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.