Bitrix API

Element

Table of Contents

Methods

__construct()  : mixed
getId()  : int
Returns identifier of the element.
getParentSections()  : array<string|int, int>
Returns unique array of the element sections with all of their parents.
getPriceValues()  : mixed
Returns loaded price values.
getPropertyValues()  : mixed
Returns loaded property values.
getSectionParents()  : mixed
Returns all section parents.
getSections()  : array<string|int, int>
Returns unique array of the element sections.
isElementSection()  : bool
Returns true if section is the one element connected with.
loadFromDatabase()  : void
Fills element with data from the database.

Methods

__construct()

public __construct(int $iblockId, int $elementId) : mixed
Parameters
$iblockId : int

Information block identifier.

$elementId : int

Element identifier.

Tags
throws
LoaderException

getId()

Returns identifier of the element.

public getId() : int
Return values
int

getParentSections()

Returns unique array of the element sections with all of their parents.

public getParentSections() : array<string|int, int>
Return values
array<string|int, int>

getPriceValues()

Returns loaded price values.

public getPriceValues(int $priceId) : mixed
Parameters
$priceId : int

Price identifier.

getPropertyValues()

Returns loaded property values.

public getPropertyValues(int $propertyId) : mixed
Parameters
$propertyId : int

Property identifier.

Tags
@return

array[]mixed

getSectionParents()

Returns all section parents.

public getSectionParents(int $sectionId) : mixed
Parameters
$sectionId : int

Section identifier.

getSections()

Returns unique array of the element sections.

public getSections() : array<string|int, int>
Return values
array<string|int, int>

isElementSection()

Returns true if section is the one element connected with.

public isElementSection(int $sectionId) : bool
Parameters
$sectionId : int

Section identifier.

Return values
bool

loadFromDatabase()

Fills element with data from the database.

public loadFromDatabase() : void

        
On this page

Search results