Component extends Node
Table of Contents
Methods
- getHandlerJS() : string
- Get class - frontend handler.
- getIblockParams() : array<string|int, mixed>|string
- Tmp function for gets iblock params.
- getIblockURL() : string
- Build element/section url.
- getNode() : array<string|int, mixed>
- Get data for this node.
- prepareManifest() : array<string|int, mixed>|null
- Prepare item-node of manifest.
- saveNode() : void
- Save data for this node.
- setPredefineForDynamicProps() : void
- Fill predefined values for some dynamic props.
Methods
getHandlerJS()
Get class - frontend handler.
public
static getHandlerJS() : string
Return values
stringgetIblockParams()
Tmp function for gets iblock params.
public
static getIblockParams([string $key = false ]) : array<string|int, mixed>|string
since 18.4.0
Parameters
- $key : string = false
-
If isset, return value for this key.
Return values
array<string|int, mixed>|stringgetIblockURL()
Build element/section url.
public
static getIblockURL(int $elementId, string $urlType) : string
since 18.4.0
Parameters
- $elementId : int
-
Element / section id.
- $urlType : string
-
Type of url (section / detail).
Return values
stringgetNode()
Get data for this node.
public
static getNode(Block $block, string $selector) : array<string|int, mixed>
Parameters
- $block : Block
-
Block instance.
- $selector : string
-
Selector.
Return values
array<string|int, mixed>prepareManifest()
Prepare item-node of manifest.
public
static prepareManifest(Block $block, array<string|int, mixed> $manifest[, array<string|int, mixed> &$manifestFull = array() ]) : array<string|int, mixed>|null
Parameters
- $block : Block
-
Block instance.
- $manifest : array<string|int, mixed>
-
Manifest of current node.
- $manifestFull : array<string|int, mixed> = array()
-
Full manifest of block (by ref).
Return values
array<string|int, mixed>|null —Return null for delete from manifest.
saveNode()
Save data for this node.
public
static saveNode(Block $block, string $selector, array<string|int, mixed> $data) : void
Parameters
- $block : Block
-
Block instance.
- $selector : string
-
Selector.
- $data : array<string|int, mixed>
-
Data array.
setPredefineForDynamicProps()
Fill predefined values for some dynamic props.
public
static setPredefineForDynamicProps(array<string|int, mixed> $additionalVals) : void
Parameters
- $additionalVals : array<string|int, mixed>
-
Additional vals.