Bitrix API

IblockTable extends DataManager

Table of Contents

Constants

ACTIVE  = 'Y'
INACTIVE  = 'N'
TYPE_ELEMENT  = 'E'
TYPE_SECTION  = 'S'

Methods

checkSection()  : bool
Checks if section $sectionId should be added to sitemap.
clearBySitemap()  : void
Clears all iblock links on sitemap settings deletion.
getByIblock()  : array<string|int, mixed>
Returns array of data for sitemap update due to some iblock action.
getMap()  : array<string|int, mixed>
Returns entity map definition.
getTableName()  : string
Returns DB table name for entity.

Constants

INACTIVE

public mixed INACTIVE = 'N'

TYPE_ELEMENT

public mixed TYPE_ELEMENT = 'E'

TYPE_SECTION

public mixed TYPE_SECTION = 'S'

Methods

checkSection()

Checks if section $sectionId should be added to sitemap.

public static checkSection(int $sectionId, array<string|int, mixed> $sectionSettings, bool $defaultValue) : bool
Parameters
$sectionId : int

Section ID.

$sectionSettings : array<string|int, mixed>

Sitemap section settings array.

$defaultValue : bool

Default value for situation of settings absence.

Return values
bool

clearBySitemap()

Clears all iblock links on sitemap settings deletion.

public static clearBySitemap(int $sitemapId) : void
Parameters
$sitemapId : int

Sitemap settings ID.

getByIblock()

Returns array of data for sitemap update due to some iblock action.

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

Iblock element or section fields array.

$itemType : string

IblockTable::TYPE_ELEMENT || IblockTable::TYPE_SECTION.

Tags
throws
ArgumentException
Return values
array<string|int, mixed>

Array of sitemap settings

getMap()

Returns entity map definition.

public static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTableName()

Returns DB table name for entity.

public static getTableName() : string
Return values
string

        
On this page

Search results