TabletGridComponent extends GridComponent
Table of Contents
Properties
- $__name : mixed
- $__parent : CBitrixComponent
- $__path : mixed
- $__template : CBitrixComponentTemplate
- $__templatePage : mixed
- $arParams : mixed
- $arResult : mixed
- $arResultCacheKeys : array<string|int, mixed>
Methods
- __construct() : mixed
- Constructor with ability to copy the component.
- __prepareComponentParams() : void
- Helper function for component parameters safe html escaping.
- __showError() : void
- Function shows an internal error message.
- abortResultCache() : void
- Function aborts the cache after it's start.
- addChildCSS() : void
- Function registers children css file for cache.
- addChildEpilog() : void
- Function registers children epilog file for cache.
- addChildFrame() : void
- Registers child frame for cache.
- addChildJS() : void
- Function registers children js file for cache.
- addDeleteAction() : void
- Function adds an delete action to some area inside the component.
- addEditAction() : void
- Function adds an edit action to some area inside the component.
- addEditButton() : void
- Function adds a button to be displayed.
- addIncludeAreaIcon() : void
- Function adds an Icon to the component area in the editing mode.
- addIncludeAreaIcons() : void
- Function replaces Icons displayed for the component by an collection.
- addViewTarget() : void
- Function registers new view target for the cache.
- clearComponentCache() : void
- Function clears entire component cache.
- clearResultCache() : void
- Function deletes the cache created before.
- endResultCache() : void
- Function ends the caching block of the component execution.
- executeComponent() : mixed
- Function calls __includeComponent in order to execute the component.
- getCacheID() : string
- Function returns an cache identifier based on component parameters and environment.
- getCachePath() : string
- Function returns component cache path.
- getDefaultFrameMode() : mixed
- getEditAreaId() : string
- Function returns component area id for editing mode.
- getFrameMode() : mixed
- getIncludeAreaIcons() : mixed
- Function returns the collection of the Icons displayed for the component.
- getLanguageId() : mixed
- getName() : string
- Function returns component name in form bitrix:component.name
- getParent() : CBitrixComponent
- Function returns the parent component (if exists)
- getPath() : string
- Function returns path to component relative to Web server DOCUMENT_ROOT in form /bitrix/components/bitrix/component.name
- getRealFrameMode() : mixed
- getRelativePath() : string
- Function returns path to component in form /bitrix/component.name
- getSignedParameters() : string|null
- Returns signed parameters.
- getSiteId() : mixed
- getSiteTemplateId() : mixed
- getTemplate() : CBitrixComponentTemplate
- Function returns the template object
- getTemplateCachedData() : mixed
- Function returns current template css files or null if there is no template.
- getTemplateName() : string
- Function returns the name of the template
- getTemplatePage() : string
- Function returns the template page witch was set with initComponentTemplate
- includeComponent() : mixed
- Function executes the component. Returns the result of it's execution.
- includeComponentClass() : string
- Function includes class of the component by component name bitrix:component.base
- includeComponentEpilog() : void
- Function restores component epilog environment and executes it.
- includeComponentLang() : void
- Function includes language files from within the component directory.
- includeComponentTemplate() : void
- Function executes the template.
- initComponent() : bool
- Function initializes the component. Returns true on success.
- initComponentTemplate() : bool
- Function initializes the template of the component. Returns true on success.
- onIncludeComponentLang() : void
- Event called from includeComponent before component execution.
- onPrepareComponentParams() : mixed
- Event called from includeComponent before component execution.
- randString() : string
- Function returns next pseudo random value.
- setFrameMode() : void
- Marks a component as capable of composite mode.
- setLanguageId() : mixed
- setResultCacheKeys() : void
- Function marks the arResult keys to be saved to cache. Just like __sleep magic method do.
- setSiteId() : mixed
- setSiteTemplateId() : mixed
- setTemplateCachedData() : void
- Function applies collection of the css files to the current template.
- setTemplateEpilog() : void
- Function saves component epilog environment
- setTemplateName() : bool
- Function sets the name of the template. Returns true on success.
- showComponentTemplate() : void
- Function executes initialized template of the component.
- startResultCache() : string
- Function starts the caching block of the component execution.
Properties
$__name
public
mixed
$__name
= ""
$__parent
public
CBitrixComponent
$__parent
= \null
$__path
public
mixed
$__path
= ""
$__template
public
CBitrixComponentTemplate
$__template
= \null
$__templatePage
public
mixed
$__templatePage
= ""
$arParams
public
mixed
$arParams
= array()
$arResult
public
mixed
$arResult
= array()
$arResultCacheKeys
public
array<string|int, mixed>
$arResultCacheKeys
= \false
Methods
__construct()
Constructor with ability to copy the component.
public
__construct([CBitrixComponent $component = null ]) : mixed
Parameters
- $component : CBitrixComponent = null
__prepareComponentParams()
Helper function for component parameters safe html escaping.
public
final __prepareComponentParams(array[string] &$arParams) : void
Parameters
- $arParams : array[string]
__showError()
Function shows an internal error message.
public
__showError(string $errorMessage[, string $errorCode = "" ]) : void
Parameters
- $errorMessage : string
- $errorCode : string = ""
abortResultCache()
Function aborts the cache after it's start.
public
final abortResultCache() : void
Note: must be called if component returns before endResultCache or includeComponentTemplate called.
addChildCSS()
Function registers children css file for cache.
public
final addChildCSS(string $cssPath) : void
Parameters
- $cssPath : string
addChildEpilog()
Function registers children epilog file for cache.
public
final addChildEpilog(string $epilogFile) : void
Parameters
- $epilogFile : string
addChildFrame()
Registers child frame for cache.
public
final addChildFrame(StaticArea $frame) : void
Parameters
- $frame : StaticArea
addChildJS()
Function registers children js file for cache.
public
final addChildJS(string $jsPath) : void
Parameters
- $jsPath : string
addDeleteAction()
Function adds an delete action to some area inside the component.
public
final addDeleteAction(string $entryId, string $deleteLink[, string|bool $deleteTitle = false ][, array[string] $arParams = array() ]) : void
- $arParams['CONFIRM'] = false - disable confirm;
- $arParams['CONFIRM'] = 'Text' - confirm with custom text;
- no $arParams['CONFIRM'] at all - confirm with default text
Parameters
- $entryId : string
- $deleteLink : string
- $deleteTitle : string|bool = false
- $arParams : array[string] = array()
addEditAction()
Function adds an edit action to some area inside the component.
public
final addEditAction(string $entryId, string $editLink[, string|bool $editTitle = false ][, array[string] $arParams = array() ]) : void
Parameters
- $entryId : string
- $editLink : string
- $editTitle : string|bool = false
- $arParams : array[string] = array()
addEditButton()
Function adds a button to be displayed.
public
final addEditButton(array[int] $arButton) : void
Parameters
- $arButton : array[int]
addIncludeAreaIcon()
Function adds an Icon to the component area in the editing mode.
public
final addIncludeAreaIcon(array[string] $arIcon) : void
Parameters
- $arIcon : array[string]
addIncludeAreaIcons()
Function replaces Icons displayed for the component by an collection.
public
final addIncludeAreaIcons(mixed $arIcons) : void
Parameters
- $arIcons : mixed
addViewTarget()
Function registers new view target for the cache.
public
final addViewTarget(string $target, string $content, int $pos) : void
Parameters
- $target : string
- $content : string
- $pos : int
clearComponentCache()
Function clears entire component cache.
public
final static clearComponentCache(string $componentName[, string $siteId = "" ]) : void
Note: parameters must exactly match to startResultCache call.
Parameters
- $componentName : string
- $siteId : string = ""
clearResultCache()
Function deletes the cache created before.
public
final clearResultCache([mixed $additionalCacheID = false ][, string|bool $cachePath = false ]) : void
Note: parameters must exactly match to startResultCache call.
Parameters
- $additionalCacheID : mixed = false
- $cachePath : string|bool = false
endResultCache()
Function ends the caching block of the component execution.
public
final endResultCache() : void
Note: automaticly called by includeComponentTemplate.
executeComponent()
Function calls __includeComponent in order to execute the component.
public
executeComponent() : mixed
getCacheID()
Function returns an cache identifier based on component parameters and environment.
public
getCacheID([mixed $additionalCacheID = false ]) : string
Parameters
- $additionalCacheID : mixed = false
Return values
stringgetCachePath()
Function returns component cache path.
public
final getCachePath() : string
Return values
stringgetDefaultFrameMode()
public
getDefaultFrameMode() : mixed
getEditAreaId()
Function returns component area id for editing mode.
public
final getEditAreaId(string $entryId) : string
Parameters
- $entryId : string
Return values
stringgetFrameMode()
public
getFrameMode() : mixed
getIncludeAreaIcons()
Function returns the collection of the Icons displayed for the component.
public
final getIncludeAreaIcons() : mixed
Tags
getLanguageId()
public
getLanguageId() : mixed
getName()
Function returns component name in form bitrix:component.name
public
final getName() : string
Note: component must be inited by initComponent method.
Return values
stringgetParent()
Function returns the parent component (if exists)
public
final getParent() : CBitrixComponent
Note: component must be inited by initComponent method.
Return values
CBitrixComponentgetPath()
Function returns path to component relative to Web server DOCUMENT_ROOT in form /bitrix/components/bitrix/component.name
public
final getPath() : string
Note: component must be inited by initComponent method.
Return values
stringgetRealFrameMode()
public
getRealFrameMode() : mixed
getRelativePath()
Function returns path to component in form /bitrix/component.name
public
final getRelativePath() : string
Note: component must be inited by initComponent method.
Return values
stringgetSignedParameters()
Returns signed parameters.
public
final getSignedParameters() : string|null
The list contains parameters which are presented in \CBitrixComponent::listKeysSignedParameters().
Tags
Return values
string|nullgetSiteId()
public
getSiteId() : mixed
getSiteTemplateId()
public
getSiteTemplateId() : mixed
getTemplate()
Function returns the template object
public
final getTemplate() : CBitrixComponentTemplate
Note: component must be inited by initComponent method.
Return values
CBitrixComponentTemplategetTemplateCachedData()
Function returns current template css files or null if there is no template.
public
final getTemplateCachedData() : mixed
Note: component must be inited by initComponent method.
Tags
getTemplateName()
Function returns the name of the template
public
final getTemplateName() : string
Note: component must be inited by initComponent method.
Return values
stringgetTemplatePage()
Function returns the template page witch was set with initComponentTemplate
public
final getTemplatePage() : string
Note: component must be inited by initComponent method.
Return values
stringincludeComponent()
Function executes the component. Returns the result of it's execution.
public
final includeComponent(string $componentTemplate, array<string|int, mixed> $arParams, CBitrixComponent|null $parentComponent[, mixed $returnResult = false ]) : mixed
Note: component must be inited by initComponent method.
Parameters
- $componentTemplate : string
- $arParams : array<string|int, mixed>
- $parentComponent : CBitrixComponent|null
- $returnResult : mixed = false
includeComponentClass()
Function includes class of the component by component name bitrix:component.base
public
final static includeComponentClass(string $componentName) : string
Parameters
- $componentName : string
Return values
stringincludeComponentEpilog()
Function restores component epilog environment and executes it.
public
final includeComponentEpilog(array[string] $arEpilogInfo) : void
Parameters
- $arEpilogInfo : array[string]
includeComponentLang()
Function includes language files from within the component directory.
public
final includeComponentLang([string $relativePath = "" ][, string|bool $lang = false ]) : void
For example: $this->includeComponentLang("ajax.php") will include "lang/en/ajax.php" file.
Note: component must be inited by initComponent method.
Parameters
- $relativePath : string = ""
- $lang : string|bool = false
includeComponentTemplate()
Function executes the template.
public
final includeComponentTemplate([string $templatePage = "" ][, string $customTemplatePath = "" ]) : void
Note: component must be inited by initComponent method.
Parameters
- $templatePage : string = ""
- $customTemplatePath : string = ""
initComponent()
Function initializes the component. Returns true on success.
public
final initComponent(string $componentName[, string|bool $componentTemplate = false ]) : bool
It is absolutly necessery to call this function before any component usage.
Parameters
- $componentName : string
- $componentTemplate : string|bool = false
Return values
boolinitComponentTemplate()
Function initializes the template of the component. Returns true on success.
public
final initComponentTemplate([string $templatePage = "" ][, string|bool $siteTemplate = false ][, string $customTemplatePath = "" ]) : bool
Instansiates the template object and calls it's init function.
Note: component must be inited by initComponent method.
Parameters
- $templatePage : string = ""
- $siteTemplate : string|bool = false
- $customTemplatePath : string = ""
Return values
boolonIncludeComponentLang()
Event called from includeComponent before component execution.
public
onIncludeComponentLang() : void
Includes component.php from within lang directory of the component.
onPrepareComponentParams()
Event called from includeComponent before component execution.
public
onPrepareComponentParams(array[string] $arParams) : mixed
Takes component parameters as argument and should return it formatted as needed.
Parameters
- $arParams : array[string]
Tags
randString()
Function returns next pseudo random value.
public
randString([int $length = 6 ]) : string
Parameters
- $length : int = 6
Tags
Return values
stringsetFrameMode()
Marks a component as capable of composite mode.
public
setFrameMode(bool $mode) : void
You should use is to mark a whole component as composite incompatible.
Parameters
- $mode : bool
setLanguageId()
public
setLanguageId(string $languageId) : mixed
Parameters
- $languageId : string
setResultCacheKeys()
Function marks the arResult keys to be saved to cache. Just like __sleep magic method do.
public
final setResultCacheKeys(array[int] $arResultCacheKeys) : void
Note: it's call adds key, not replacing.
Parameters
- $arResultCacheKeys : array[int]
setSiteId()
public
setSiteId(string $siteId) : mixed
Parameters
- $siteId : string
setSiteTemplateId()
public
setSiteTemplateId(string $siteTemplateId) : mixed
Parameters
- $siteTemplateId : string
setTemplateCachedData()
Function applies collection of the css files to the current template.
public
final setTemplateCachedData(array[string][int] $templateCachedData) : void
Note: component must be inited by initComponent method.
Parameters
- $templateCachedData : array[string][int]
setTemplateEpilog()
Function saves component epilog environment
public
final setTemplateEpilog(array[string] $arEpilogInfo) : void
Parameters
- $arEpilogInfo : array[string]
setTemplateName()
Function sets the name of the template. Returns true on success.
public
final setTemplateName(string $templateName) : bool
Note: component must be inited by initComponent method.
Parameters
- $templateName : string
Return values
boolshowComponentTemplate()
Function executes initialized template of the component.
public
final showComponentTemplate() : void
Note: component must be inited by initComponent method.
startResultCache()
Function starts the caching block of the component execution.
public
final startResultCache([int|bool $cacheTime = false ][, mixed $additionalCacheID = false ][, string|bool $cachePath = false ]) : string
Parameters
- $cacheTime : int|bool = false
- $additionalCacheID : mixed = false
- $cachePath : string|bool = false