См. определение в файле engine.php строка 63
◆ explodeFunctionArgument()
Explodes a string into function arguments. Numbers or strings.
- Аргументы
-
string | $token | Expression string. |
NodeFunction | $function | Function object to which arguments will be added. |
- Возвращает
- void
См. определение в файле engine.php строка 201
◆ parseFormula()
parseFormula |
( |
array & | $parsedTemplate | ) |
|
|
staticprotected |
Parses "{=" part of the template. Moves internal pointer right behind balanced "}" after {= a field of the entity should follow or a function call.
- Аргументы
-
array[]string | &$parsedTemplate Template tokens. |
- Возвращает
- NodeEntityField|NodeFunction|null
См. определение в файле engine.php строка 129
◆ parseFunctionArguments()
Adds function arguments to a $function. An formula may be evaluated as oa argument. An number or A string in double quotes.
- Аргументы
-
string | $token | Expression string. |
| array[]string | &$parsedTemplate Template tokens. |
NodeFunction | $function | Function object to which arguments will be added. |
- Возвращает
- void
См. определение в файле engine.php строка 165
◆ parseTemplateTree()
parseTemplateTree |
( |
| $template, |
|
|
NodeRoot | $parent ) |
|
staticprotected |
Splits template by tokens and builds execution tree.
- Аргументы
-
string | $template | Source expression. |
NodeRoot | $parent | Root node. |
- Возвращает
- NodeRoot
См. определение в файле engine.php строка 94
◆ process()
Takes an entity (Element, Section or Iblock) and processes the template.
if (\Bitrix\Main\Loader::includeModule('iblock'))
{
$e = new \Bitrix\Iblock\Template\Entity\Element(6369);
echo "<pre>", print_r(\Bitrix\Iblock\Template\Engine::process($e, "Name: {=this.Name}. Code:{=this.code}"), 1), "</pre>";
}
- Аргументы
-
Entity\Base | $entity | Context entity for template processing. |
string | $template | Template to make substitutions in. |
- Возвращает
- string
См. определение в файле engine.php строка 80
Объявления и описания членов класса находятся в файле: