SectionValues extends BaseValues
Table of Contents
Methods
- __construct() : mixed
- clearValues() : void
- Clears section 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 section.
- getParent() : BaseValues|null
- Returns it's first parent if exists one.
- getParents() : mixed
- Returns all the parents of the section which is array with one element: parent section 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 section.
- queue() : void
- Puts a mark for and element or section to be queried from the database.
Methods
__construct()
public
__construct(int $iblockId, int $sectionId) : mixed
Parameters
- $iblockId : int
-
Iblock identifier.
- $sectionId : int
-
Section identifier.
clearValues()
Clears section values DB cache
public
clearValues() : void
createTemplateEntity()
Creates an entity which will be used to process the templates.
public
createTemplateEntity() : Base
Return values
BasedeleteValues()
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
intgetId()
Returns unique identifier of the section.
public
getId() : int
Return values
intgetParent()
Returns it's first parent if exists one.
public
getParent() : BaseValues|null
Otherwise returns null.
Return values
BaseValues|nullgetParents()
Returns all the parents of the section which is array with one element: parent section or iblock.
public
getParents() : mixed
Tags
getType()
Returns type of the entity which will be stored into DB.
public
getType() : string
Return values
stringgetValue()
Returns value of the inherited property.
public
getValue(string $propertyCode) : string
The result is html encoded string.
Parameters
- $propertyCode : string
-
Mnemonic code.
Return values
stringgetValues()
Returns all calculated values of inherited properties for this entity.
public
getValues() : mixed
Tags
getValueTableName()
Returns the table name where values will be stored.
public
getValueTableName() : string
Return values
stringhasTemplates()
Checks if there are some templates exists for this set of values.
public
hasTemplates() : bool
Return values
boolqueryValues()
Returns all calculated values of inherited properties for this section.
public
queryValues() : mixed
Tags
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.