Bitrix API

Source

Table of Contents

Constants

AVAILABLE_SOURCES  = ['blog', 'blogcomment', 'taskcomment', 'livefeed']
Supported sources (modules).
BLOCKS  = ['header' => ['code' => '27.2.one_col_full_title', 'selector' => '.landing-block-node-title'], 'text' => ['code' => '27.6.one_col_fix_text_with_headings', 'selector' => '.landing-block-node-text'], 'quote' => ['code' => '27.5.one_col_fix_text_with_border', 'selector' => '.landing-block-node-text'], 'code' => ['code' => '27.7.one_col_fix_text_on_bg', 'selector' => '.landing-block-node-text'], 'img' => ['code' => '32.2.img_one_big', 'selector' => '.landing-block-node-img'], 'table' => ['code' => '27.6.one_col_fix_text_with_headings', 'selector' => '.landing-block-node-text'], 'video' => ['code' => '49.1.video_just_video', 'selector' => '.landing-block-node-embed']]
Block codes for different content types.

Methods

createFromSource()  : array<string|int, mixed>|null
Creates new knowledge page and returns info about it.

Constants

AVAILABLE_SOURCES

Supported sources (modules).

public mixed AVAILABLE_SOURCES = ['blog', 'blogcomment', 'taskcomment', 'livefeed']

BLOCKS

Block codes for different content types.

public mixed BLOCKS = ['header' => ['code' => '27.2.one_col_full_title', 'selector' => '.landing-block-node-title'], 'text' => ['code' => '27.6.one_col_fix_text_with_headings', 'selector' => '.landing-block-node-text'], 'quote' => ['code' => '27.5.one_col_fix_text_with_border', 'selector' => '.landing-block-node-text'], 'code' => ['code' => '27.7.one_col_fix_text_on_bg', 'selector' => '.landing-block-node-text'], 'img' => ['code' => '32.2.img_one_big', 'selector' => '.landing-block-node-img'], 'table' => ['code' => '27.6.one_col_fix_text_with_headings', 'selector' => '.landing-block-node-text'], 'video' => ['code' => '49.1.video_just_video', 'selector' => '.landing-block-node-embed']]

Methods

createFromSource()

Creates new knowledge page and returns info about it.

public static createFromSource(int $kbId, string $sourceType, int $sourceId) : array<string|int, mixed>|null
Parameters
$kbId : int

Knowledge id.

$sourceType : string

Source type.

$sourceId : int

Source id.

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

        
On this page

Search results