Bitrix API

TemplateHelper

FinalYes

Table of Contents

Methods

__call()  : mixed
__construct()  : mixed
addBodyClass()  : mixed
addMethod()  : mixed
checkHasFatals()  : mixed
displayFatals()  : mixed
Show blocks of fatal messages, if any
displayWarnings()  : mixed
Show blocks of warnings, if any
fillTemplate()  : mixed
findParameterValue()  : mixed
Find a parameter in $arParams of the current component call (or of parent components nested calls, if any)
formatDateAfter()  : mixed
getComponent()  : mixed
getErrors()  : mixed
getId()  : mixed
getRunTimeActions()  : mixed
getScopeId()  : mixed
initializeExtension()  : mixed
Initialize the js-controller for this template, using data from $arResult['JS_DATA'] as an input object of options.
pickId()  : mixed
registerExtension()  : mixed
Register a js-controller extension for this template
setNavChain()  : mixed
setTitle()  : mixed

Methods

__call()

public __call(mixed $name, mixed $arguments) : mixed
Parameters
$name : mixed
$arguments : mixed

__construct()

public __construct(mixed $name, mixed $template[, array<string|int, mixed> $parameters = array() ]) : mixed
Parameters
$name : mixed
$template : mixed
$parameters : array<string|int, mixed> = array()

addBodyClass()

public addBodyClass([mixed $className = '' ]) : mixed
Parameters
$className : mixed = ''

addMethod()

public addMethod(mixed $name, mixed $cb) : mixed
Parameters
$name : mixed
$cb : mixed

displayFatals()

Show blocks of fatal messages, if any

public displayFatals() : mixed

displayWarnings()

Show blocks of warnings, if any

public displayWarnings() : mixed

fillTemplate()

public fillTemplate(mixed $template, mixed $data) : mixed
Parameters
$template : mixed
$data : mixed

findParameterValue()

Find a parameter in $arParams of the current component call (or of parent components nested calls, if any)

public findParameterValue(mixed $parameter) : mixed
Parameters
$parameter : mixed

formatDateAfter()

public static formatDateAfter(mixed $matchWorkTime, mixed $value) : mixed
Parameters
$matchWorkTime : mixed
$value : mixed

initializeExtension()

Initialize the js-controller for this template, using data from $arResult['JS_DATA'] as an input object of options.

public initializeExtension([array<string|int, mixed> $data = array() ]) : mixed

Each field in this object will be accessible via .option('fieldName') call inside js-controller.

Parameters
$data : array<string|int, mixed> = array()

registerExtension()

Register a js-controller extension for this template

public registerExtension([array<string|int, mixed> $relations = array() ]) : mixed
Parameters
$relations : array<string|int, mixed> = array()

setNavChain()

public setNavChain(array<string|int, mixed> $chain) : mixed
Parameters
$chain : array<string|int, mixed>

setTitle()

public setTitle(mixed $title) : mixed
Parameters
$title : mixed

        
On this page

Search results