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
getId()
Returns identifier of the element.
public
getId() : int
Return values
intgetParentSections()
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
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
boolloadFromDatabase()
Fills element with data from the database.
public
loadFromDatabase() : void