Bitrix API

Landing

Import landing from rest

Table of Contents

Methods

getAdditionalFieldsForReplaceBySite()  : array<string|int, mixed>
Find current additional field by landing id, filter only fields for replace landing import
getRepoId()  : int|null
Finds repository block and return it id.
importLanding()  : array<string|int, mixed>|null
Imports landing.
replaceLanding()  : array<string|int, mixed>|null
No create new page, but replace blocks in current landing
saveDataToBlock()  : void
Save new data to the block.
setForceAppendRestBlocks()  : void
Sets local variable to force append REST blocks into the repository.

Methods

getAdditionalFieldsForReplaceBySite()

Find current additional field by landing id, filter only fields for replace landing import

public static getAdditionalFieldsForReplaceBySite(int $siteId) : array<string|int, mixed>
Parameters
$siteId : int
Return values
array<string|int, mixed>

getRepoId()

Finds repository block and return it id.

public static getRepoId(string $appCode, string $xmlId) : int|null
Parameters
$appCode : string

Application code.

$xmlId : string

External id application.

Return values
int|null

importLanding()

Imports landing.

public static importLanding(Event $event) : array<string|int, mixed>|null
Parameters
$event : Event

Event instance.

Return values
array<string|int, mixed>|null

replaceLanding()

No create new page, but replace blocks in current landing

public static replaceLanding(Event $event) : array<string|int, mixed>|null
Parameters
$event : Event
Return values
array<string|int, mixed>|null

saveDataToBlock()

Save new data to the block.

public static saveDataToBlock(Block $blockInstance, array<string|int, mixed> $block) : void
Parameters
$blockInstance : Block

Block instance.

$block : array<string|int, mixed>

Block data.

setForceAppendRestBlocks()

Sets local variable to force append REST blocks into the repository.

public static setForceAppendRestBlocks(bool $mode) : void
Parameters
$mode : bool

Mode state.


        
On this page

Search results