__construct()
__toString()
addRequiredExternal()
callTemplateHook()
create()
getExtraContainerData()
getParam()
getParams()
getRequiredCssAsHtml()
getRequiredCssUrl()
getRequiredExternals()
getRequiredExternalsAsHtml()
getRequiredExternalsAsJson()
getRequiredJavaScriptAsHtml()
getTemplateName()
getToLoadList()
handleTemplateError()
preloadTemplate()
render()
reset()
setFilePath()
setLanguageId()
setParam()
setParams()
setTemplate()
_getRequiredExternals()
_getTemplatesFromDataSource()
_loadTemplate()
_loadTemplateFilePath()
_loadTemplateFromCache()
_loadTemplates()
_mergeExtraContainerData()
_mergeIntoTemplateCache()
_preloadTemplate()
_processJsUrls()
_renderInternal()
_resetToLoadList()
_setRequiredExternals()
_usingTemplateFiles()
$_extraData
$_filePath
$_languageId
$_params
$_required
$_templateCache
$_templateErrors
$_templateName
$_toLoad
Renderer for install templates.
Note that due to a lack of late static binding support, all static properties and any method that deals with those properties (via "self", regardless of whether it's static or not) must be (re)defined in child classes!
package | XenForo_Core |
---|
__construct(string $templateName, array $params)
inherited_from | \XenForo_Template_Abstract::__construct() |
---|
string
Template name
array
Key-value parameters
__toString() : string
inherited_from | \XenForo_Template_Abstract::__toString() |
---|
string
addRequiredExternal(string $type, string $requirement)
inherited_from | \XenForo_Template_Abstract::addRequiredExternal() |
---|
string
Type of requirement
string
Value for requirement
callTemplateHook(string $name, string $contents, array $params) : string
Params passed by template explicitly will respect mappings and greater context. Raw params are still available via the template object.
inherited_from | \XenForo_Template_Abstract::callTemplateHook() |
---|
string
Name of the hook
string
Contents of the hook; may be empty
array
List of params to pass specifically; these will respect mappings.
string
New version of the contents (could be modified)create(string $templateName, array $params) : \XenForo_Template_Abstract
Mainly helpful if an event only has the current template object in scope.
inherited_from | \XenForo_Template_Abstract::create() |
---|
string
array
getExtraContainerData() : array
array
getParam($key) : mixed
inherited_from | \XenForo_Template_Abstract::getParam() |
---|
string
mixed
Null if not found.getParams() : array
inherited_from | \XenForo_Template_Abstract::getParams() |
---|
array
getRequiredCssAsHtml(string $requirement) : string
Expected arg is simple a URL.
inherited_from | \XenForo_Template_Abstract::getRequiredCssAsHtml() |
---|
string
string
getRequiredCssUrl(array $requirements) : string
Requirements should be a list of CSS templates, not including the trailing ".css".
array
string
getRequiredExternals(string $type) : array
Values will be returned as a list of URLs.
inherited_from | \XenForo_Template_Abstract::getRequiredExternals() |
---|
string
array
List of URLsgetRequiredExternalsAsHtml(string $type) : string
inherited_from | \XenForo_Template_Abstract::getRequiredExternalsAsHtml() |
---|
string
Type of requirement to fetch
string
Requirements as HTMLgetRequiredExternalsAsJson()
inherited_from | \XenForo_Template_Abstract::getRequiredExternalsAsJson() |
---|
getRequiredJavaScriptAsHtml(array $requirements) : string
inherited_from | \XenForo_Template_Abstract::getRequiredJavaScriptAsHtml() |
---|
array
Array of paths to JS files.
string
getTemplateName() : string
inherited_from | \XenForo_Template_Abstract::getTemplateName() |
---|
string
getToLoadList() : array
array
handleTemplateError(integer $errorType, string $errorString, string $file, integer $line)
inherited_from | \XenForo_Template_Abstract::handleTemplateError() |
---|
integer
Type of error (one of the E_* constants)
string
string
integer
preloadTemplate(string $templateName)
This is useful if you think a render is going to be called before the template you require is to be used.
string
Template to preload
render() : string
inherited_from | \XenForo_Template_Abstract::render() |
---|
string
reset()
setFilePath(string $filePath)
string
setLanguageId(integer $languageId)
inherited_from | \XenForo_Template_Abstract::setLanguageId() |
---|
integer
setParam($key, $value)
Overwrites parameters with the same name.
inherited_from | \XenForo_Template_Abstract::setParam() |
---|
string
setParams(array $params)
Overwrites parameters with the same name.
inherited_from | \XenForo_Template_Abstract::setParams() |
---|
array
setTemplate(string $templateName, string $templateValue)
This is primarily useful for testing.
string
Name of the template
string
Value for the template
_getRequiredExternals() : array
array
_getTemplatesFromDataSource(array $templateList) : array
array
Template list
array
Key-value pairs of template titles/compiled templates_loadTemplate(string $templateName) : string
inherited_from | \XenForo_Template_Abstract::_loadTemplate() |
---|
string
Template name
string
Compiled version of the template_loadTemplateFilePath(string $templateName)
string
Template name
_loadTemplateFromCache(string $templateName) : string
If the template does not exist, it will be set to an empty string. This will be overwritten if the template is loaded from the data source.
string
Template name
string
Compiled template_loadTemplates()
inherited_from | \XenForo_Template_Abstract::_loadTemplates() |
---|
_mergeExtraContainerData(array $extraData)
array
_mergeIntoTemplateCache(array $templates)
array
Templates (key: name, value: compiled output)
_preloadTemplate(string $templateName)
string
Template name
_processJsUrls(array $jsFiles)
inherited_from | \XenForo_Template_Abstract::_processJsUrls() |
---|
_renderInternal(string $__template, array $__extraData) : string
string
Template text or name of template file
array
Returned extra data from the render
string
Rendered template_resetToLoadList()
_setRequiredExternals(array $required)
array
_usingTemplateFiles() : boolean
boolean
$_extraData : array
$_filePath : string
All child classes must redefine this property!
$_languageId : integer
inherited_from | \XenForo_Template_Abstract::$$_languageId |
---|
$_params : array
inherited_from | \XenForo_Template_Abstract::$$_params |
---|
$_required : array
All child classes must redefine this property!
inherited_from | \XenForo_Template_Abstract::$$_required |
---|
$_templateCache : array
Key is the template name; value is the compiled template. All child classes must redefine this property!
inherited_from | \XenForo_Template_Abstract::$$_templateCache |
---|
$_templateErrors : array
inherited_from | \XenForo_Template_Abstract::$$_templateErrors |
---|
$_templateName : string
inherited_from | \XenForo_Template_Abstract::$$_templateName |
---|
$_toLoad : array
Key is the template name. All child classes must redefine this property!
inherited_from | \XenForo_Template_Abstract::$$_toLoad |
---|