1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Source

Открытые статические члены

static createFromSource (int $kbId, string $sourceType, int $sourceId)

Поля данных

const AVAILABLE_SOURCES = ['blog', 'blogcomment', 'taskcomment', 'livefeed']
const BLOCKS

Защищенные статические члены

static getBlockMetaByType (string $type)
static getLastCreatedSite ()

Подробное описание

См. определение в файле source.php строка 10

Методы

◆ createFromSource()

createFromSource ( int $kbId,
string $sourceType,
int $sourceId )
static

Creates new knowledge page and returns info about it.

Аргументы
int$kbIdKnowledge id.
string$sourceTypeSource type.
int$sourceIdSource id.
Возвращает
array|null

См. определение в файле source.php строка 100

◆ getBlockMetaByType()

getBlockMetaByType ( string $type)
staticprotected

Returns self::BLOCKS item by code.

Аргументы
string$typeContent type.
Возвращает
array

См. определение в файле source.php строка 56

◆ getLastCreatedSite()

getLastCreatedSite ( )
staticprotected

Returns last created site id.

Возвращает
int

См. определение в файле source.php строка 65

Поля

◆ AVAILABLE_SOURCES

const AVAILABLE_SOURCES = ['blog', 'blogcomment', 'taskcomment', 'livefeed']

Supported sources (modules).

См. определение в файле source.php строка 15

◆ BLOCKS

const 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.

См. определение в файле source.php строка 20


Объявления и описания членов класса находятся в файле: