Bitrix API

ElementValues extends BaseValues

Table of Contents

Methods

__construct()  : mixed
clearValues()  : void
Clears element values DB cache
createTemplateEntity()  : Base
Creates an entity which will be used to process the templates.
deleteValues()  : void
Must be called on template delete.
getIblockId()  : int
Returns the identifier of the iblock of the entity.
getId()  : int
Returns unique identifier of the element.
getParent()  : BaseValues|null
Returns it's first parent if exists one.
getParents()  : mixed
Returns all the parents of the element which is array with one element: parent section with minimal identifier or iblock.
getType()  : string
Returns type of the entity which will be stored into DB.
getValue()  : string
Returns value of the inherited property.
getValues()  : mixed
Returns all calculated values of inherited properties for this entity.
getValueTableName()  : string
Returns the table name where values will be stored.
hasTemplates()  : bool
Checks if there are some templates exists for this set of values.
queryValues()  : mixed
Returns all calculated values of inherited properties for this element.
queue()  : void
Puts a mark for and element or section to be queried from the database.
setParents()  : void
Sets parent to minimal value from array or to $sectionId.

Methods

__construct()

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

Iblock identifier.

$elementId : int

Element identifier.

clearValues()

Clears element values DB cache

public clearValues() : void

createTemplateEntity()

Creates an entity which will be used to process the templates.

public createTemplateEntity() : Base
Return values
Base

deleteValues()

Must be called on template delete.

public deleteValues(int $ipropertyId) : void
Parameters
$ipropertyId : int

Identifier of the inherited property.

getIblockId()

Returns the identifier of the iblock of the entity.

public getIblockId() : int
Return values
int

getId()

Returns unique identifier of the element.

public getId() : int
Return values
int

getParents()

Returns all the parents of the element which is array with one element: parent section with minimal identifier or iblock.

public getParents() : mixed
Tags
@return

array[]\Bitrix\Iblock\InheritedProperty\BaseValues

getType()

Returns type of the entity which will be stored into DB.

public getType() : string
Return values
string

getValue()

Returns value of the inherited property.

public getValue(string $propertyCode) : string

The result is html encoded string.

Parameters
$propertyCode : string

Mnemonic code.

Return values
string

getValues()

Returns all calculated values of inherited properties for this entity.

public getValues() : mixed
Tags
@return

array[string]string

getValueTableName()

Returns the table name where values will be stored.

public getValueTableName() : string
Return values
string

hasTemplates()

Checks if there are some templates exists for this set of values.

public hasTemplates() : bool
Return values
bool

queryValues()

Returns all calculated values of inherited properties for this element.

public queryValues() : mixed
Tags
@return

array[string]string

queue()

Puts a mark for and element or section to be queried from the database.

public static queue(int $iblockId, int $id) : void
Parameters
$iblockId : int

IBlock identifier.

$id : int

Element or section identifier.

setParents()

Sets parent to minimal value from array or to $sectionId.

public setParents(array<string|int, array<string|int, mixed>> $sectionId) : void
Parameters
$sectionId : array<string|int, array<string|int, mixed>>

Section identifier.


        
On this page

Search results