Bitrix API

Designer

Table of Contents

Methods

__construct()  : mixed
Designer constructor.
execHooks()  : void
Exec block's landing and site hooks.
getBlock()  : Block|null
Returns current block.
getRepository()  : array<string|int, mixed>
Returns repository's elements.
isReady()  : bool
Returns true if current designer filled up with block.
parseManifest()  : array<string|int, mixed>
Returns additional manifest nodes from content.
registerRepoElement()  : void
Registers new repo element.
setLandingDesignBlockMode()  : void
Registers onLandingView callback for set design block flag.
unregisterRepoElement()  : void
Removes repo element by code.

Methods

__construct()

Designer constructor.

public __construct(int $blockId) : mixed
Parameters
$blockId : int

block id.

execHooks()

Exec block's landing and site hooks.

public execHooks() : void
Tags
see
Landing::execHooks

getBlock()

Returns current block.

public getBlock() : Block|null
Return values
Block|null

getRepository()

Returns repository's elements.

public static getRepository([bool $installRepo = true ]) : array<string|int, mixed>
Parameters
$installRepo : bool = true

Install repo if empty result.

Return values
array<string|int, mixed>

isReady()

Returns true if current designer filled up with block.

public isReady() : bool
Return values
bool

parseManifest()

Returns additional manifest nodes from content.

public static parseManifest(string $content) : array<string|int, mixed>
Parameters
$content : string

Block content.

Return values
array<string|int, mixed>

registerRepoElement()

Registers new repo element.

public static registerRepoElement(array<string|int, mixed> $fields) : void
Parameters
$fields : array<string|int, mixed>

Data array ([XML_ID, ?TITLE, HTML, MANIFEST]).

setLandingDesignBlockMode()

Registers onLandingView callback for set design block flag.

public static setLandingDesignBlockMode(bool $flag) : void
Parameters
$flag : bool

Design block flag.

unregisterRepoElement()

Removes repo element by code.

public static unregisterRepoElement(string $code) : void
Parameters
$code : string

External code.


        
On this page

Search results