1C-Bitrix 25.700.0
|
Открытые члены | |
__construct () | |
GetName () | |
GetPageName () | |
GetFile () | |
GetFolder () | |
GetSiteTemplate () | |
IsInTheme () | |
setLanguageId ($languageId) | |
getLanguageId () | |
GetCachedData () | |
ApplyCachedData ($arData) | |
InitTemplateEngines ($arTemplateEngines=[]) | |
Init (&$component, $siteTemplate=false, $customTemplatePath="") | |
__SearchTemplateFile ($path, $fileName) | |
hasTemplate () | |
hasTemplatePage (string $templatePage) | |
generatePossibleTemplatePath () | |
__SearchTemplate ($customTemplatePath="") | |
__IncludePHPTemplate (&$arResult, &$arParams, $parentTemplateFolder="") | |
IncludeTemplate (&$arResult) | |
IncludeLangFile ($relativePath="", $lang=false, $return=false) | |
__IncludeMutatorFile (&$arResult, &$arParams) | |
__IncludeCSSFile () | |
__IncludeJSFile () | |
__GetTemplateExtension ($templateName) | |
__GetTemplateEngine () | |
SetViewTarget ($target, $pos=500) | |
EndViewTarget () | |
AddEditAction ($entryId, $editLink, $editTitle=false, $arParams=[]) | |
AddDeleteAction ($entryId, $deleteLink, $deleteTitle=false, $arParams=[]) | |
GetEditAreaId ($entryId) | |
randString ($length=6) | |
setFrameMode ($mode) | |
getFrameMode () | |
getRealFrameMode () | |
createFrame ($id=null, $autoContainer=true) | |
addExternalCss ($cssPath) | |
addExternalJs ($jsPath) | |
getComponent () |
Открытые статические члены | |
static | CheckName ($name) |
Поля данных | |
$__name = "" | |
$__page = "" | |
$__engineID = "" | |
$__file = "" | |
$__fileAlt = "" | |
$__folder = "" | |
$__siteTemplate = "" | |
$__templateInTheme = false | |
$__hasCSS = null | |
$__hasJS = null | |
$__component = null | |
$__bInited = false |
См. определение в файле component_template.php строка 23
__construct | ( | ) |
См. определение в файле component_template.php строка 46
__GetTemplateEngine | ( | ) |
См. определение в файле component_template.php строка 1094
__GetTemplateExtension | ( | $templateName | ) |
string | $templateName | File name. |
См. определение в файле component_template.php строка 1083
__IncludeCSSFile | ( | ) |
@global CMain $APPLICATION
См. определение в файле component_template.php строка 1028
__IncludeJSFile | ( | ) |
@global CMain $APPLICATION
См. определение в файле component_template.php строка 1055
__IncludeMutatorFile | ( | & | $arResult, |
& | $arParams ) |
array | &$arResult | |
array | &$arParams |
@noinspection PhpUnusedLocalVariableInspection
См. определение в файле component_template.php строка 1003
__IncludePHPTemplate | ( | & | $arResult, |
& | $arParams, | ||
$parentTemplateFolder = "" ) |
Executes template.php via include function.
Requires Init call before usage.
array | &$arResult | Result of the component calculations. |
array | &$arParams | Parameters of the component call. |
string | $parentTemplateFolder | Parent template. |
Bitrix\Main\NotSupportedException
@noinspection PhpUnusedLocalVariableInspection
@noinspection PhpUnusedLocalVariableInspection
@noinspection PhpUnusedLocalVariableInspection
@noinspection PhpUnusedLocalVariableInspection
@noinspection PhpUnusedLocalVariableInspection
См. определение в файле component_template.php строка 810
__SearchTemplate | ( | $customTemplatePath = "" | ) |
Search template by its name in various locations.
string | $customTemplatePath |
См. определение в файле component_template.php строка 664
__SearchTemplateFile | ( | $path, | |
$fileName ) |
Search file by its path and name without extention.
string | $path | Directory. |
string | $fileName | File name (without extention). |
См. определение в файле component_template.php строка 479
AddDeleteAction | ( | $entryId, | |
$deleteLink, | |||
$deleteTitle = false, | |||
$arParams = [] ) |
Shows menu with delete action in edit mode.
['CONFIRM'] = false - disable confirm; $arParams['CONFIRM'] = 'Text' - confirm with custom text; no $arParams['CONFIRM'] at all - confirm with default text
string | $entryId | Entry identifier. prefix like 'USER' needed only in case when template has two or more lists of different editable entities. |
string | $deleteLink | Delete action link, Should be set in a component. |
false | string | $deleteTitle | Button caption. |
array | $arParams | Additional parameters. |
См. определение в файле component_template.php строка 1218
AddEditAction | ( | $entryId, | |
$editLink, | |||
$editTitle = false, | |||
$arParams = [] ) |
Shows menu with edit action in edit mode.
$this->AddEditAction(
'USER'.$arUser['ID'],
$arUser['EDIT_LINK'],
GetMessage('INTR_ISP_EDIT_USER'),
array(
'WINDOW' => array("width"=>780, "height"=>500), // popup params
'ICON' => 'bx-context-toolbar-edit-icon' // icon css
'SRC' => '/bitrix/images/myicon.gif' // icon image
)
);
string | $entryId | Entry identifier. prefix like 'USER' needed only in case when template has two or more lists of different editable entities. |
string | $editLink | Edit form link, Should be set in a component. Will be opened in js popup. |
false | string | $editTitle | Button caption. |
array | $arParams | Additional parameters. |
См. определение в файле component_template.php строка 1197
addExternalCss | ( | $cssPath | ) |
Shows css file in the head of html. Supports caching.
string | $cssPath | Path to css file. |
@global CMain $APPLICATION
См. определение в файле component_template.php строка 1342
addExternalJs | ( | $jsPath | ) |
Shows js file in the head of html. Supports caching.
string | $jsPath | Path to js file. |
@global CMain $APPLICATION
См. определение в файле component_template.php строка 1364
ApplyCachedData | ( | $arData | ) |
Performs actions on cached hit.
array | $arData |
@global CMain $APPLICATION
См. определение в файле component_template.php строка 263
|
static |
Checks the template name for correctness. Letters, digits, minus, underscore and dots are allowed.
string | $name | Name of the template. |
См. определение в файле component_template.php строка 466
createFrame | ( | $id = null, | |
$autoContainer = true ) |
Returns new frame helper object to work with composite frame.
$frame = $this->createFrame()->begin("");
echo "10@".(time()+15);
$frame->end();
string | $id | |
bool | $autoContainer |
См. определение в файле component_template.php строка 1314
EndViewTarget | ( | ) |
Ends special output which will be showed by $APPLICATION->ShowViewContent.
@global CMain $APPLICATION
См. определение в файле component_template.php строка 1146
generatePossibleTemplatePath | ( | ) |
См. определение в файле component_template.php строка 551
GetCachedData | ( | ) |
Returns data to be stored in the component cache.
Requires Init call before usage.
См. определение в файле component_template.php строка 203
getComponent | ( | ) |
A bit more civilised method of getting the parent component.
См. определение в файле component_template.php строка 1381
GetEditAreaId | ( | $entryId | ) |
Returns identifier to mark an html element as a container for highlight.
<tr id="<?=$this->GetEditAreaId('USER'.$arUser['ID']);?>">
$entryId |
См. определение в файле component_template.php строка 1235
GetFile | ( | ) |
Returns path to the template file within DOCUMENT_ROOT.
Requires Init call before usage.
См. определение в файле component_template.php строка 102
GetFolder | ( | ) |
Returns path to the template folder within DOCUMENT_ROOT.
Requires Init call before usage.
См. определение в файле component_template.php строка 121
getFrameMode | ( | ) |
getLanguageId | ( | ) |
Returns template language.
См. определение в файле component_template.php строка 188
GetName | ( | ) |
Returns name of the template.
Requires Init call before usage.
См. определение в файле component_template.php строка 64
GetPageName | ( | ) |
Returns template page.
Requires Init call before usage.
См. определение в файле component_template.php строка 83
getRealFrameMode | ( | ) |
См. определение в файле component_template.php строка 1294
GetSiteTemplate | ( | ) |
Returns site template name.
Requires Init call before usage.
См. определение в файле component_template.php строка 140
hasTemplate | ( | ) |
Checking existence of the template
См. определение в файле component_template.php строка 512
hasTemplatePage | ( | string | $templatePage | ) |
Checking existence of the template page
string | $templatePage |
См. определение в файле component_template.php строка 530
Includes template language file.
string | $relativePath | |
false | string | $lang | |
boolean | $return |
См. определение в файле component_template.php строка 966
IncludeTemplate | ( | & | $arResult | ) |
Executes template using appropriate template engine.
Requires Init call before usage.
array | &$arResult |
См. определение в файле component_template.php строка 890
Init | ( | & | $component, |
$siteTemplate = false, | |||
$customTemplatePath = "" ) |
Have to be called before any template usage. Returns true on success.
CBitrixComponent | $component | Parent component. |
boolean | string | $siteTemplate | Site template name. |
string | $customTemplatePath | Additional path to look for template in. |
См. определение в файле component_template.php строка 390
InitTemplateEngines | ( | $arTemplateEngines = [] | ) |
Called automatically on first usage of related functions.
array | $arTemplateEngines | Array of engines to add. |
См. определение в файле component_template.php строка 349
IsInTheme | ( | ) |
Returns true if template belongs to another template of a complex component.
Requires Init call before usage.
См. определение в файле component_template.php строка 159
randString | ( | $length = 6 | ) |
Function returns next pseudo random value.
int | $length |
См. определение в файле component_template.php строка 1248
setFrameMode | ( | $mode | ) |
Marks a template as capable of composite mode.
bool | $mode |
См. определение в файле component_template.php строка 1260
setLanguageId | ( | $languageId | ) |
Sets template language identifier.
string | $languageId |
См. определение в файле component_template.php строка 176
SetViewTarget | ( | $target, | |
$pos = 500 ) |
Begins special output which will be showed by $APPLICATION->ShowViewContent.
string | $target | Code name of the area. |
integer | $pos | Sort index. |
См. определение в файле component_template.php строка 1125
$__bInited = false |
См. определение в файле component_template.php строка 37
$__component = null |
См. определение в файле component_template.php строка 36
$__engineID = "" |
См. определение в файле component_template.php строка 27
$__file = "" |
См. определение в файле component_template.php строка 28
$__fileAlt = "" |
См. определение в файле component_template.php строка 29
$__folder = "" |
См. определение в файле component_template.php строка 30
$__hasCSS = null |
См. определение в файле component_template.php строка 33
$__hasJS = null |
См. определение в файле component_template.php строка 34
$__name = "" |
См. определение в файле component_template.php строка 25
$__page = "" |
См. определение в файле component_template.php строка 26
$__siteTemplate = "" |
См. определение в файле component_template.php строка 31
$__templateInTheme = false |
См. определение в файле component_template.php строка 32