Documentation

Facet

Facet class is used for generating queries with faceted indices.

Class methods

MethodDescription Available from version
addDatetimePropertyFilterAdds condition by Date/Time property for further filtering.
addDictionaryPropertyFilterAdds condition by string property for further filtering.
addNumericPropertyFilterAdds condition by string property for further filtering.
addPriceFilterAdds condition by price for further filtering.
enableCurrencyConversionAfter calling this method all subsequent queries will be automatically using converted currency for filtering.
getDictionaryReturns dictionary object of faceted indices.
getIblockIdReturns iblock ID.
getSkuIblockId Returns SKU iblock ID.
getSkuPropertyIdReturns SKU property ID.
getStorageReturns storage object for faceted indices.
isEmptyWhereReturns true, if filters were not applied.
isValidReturns true, if filter overwriting is available.
lookupDictionaryValueReturns string by its ID in dictionary.
queryReturns connection with index tables for filtering.
setPricesSets prices for further filtering. Returns instance of this object for a call chain.
setSectionIdSets section parameters for further filtering. Returns instance of this object for a call chain.
whereToSqlConverts structured array $where into condition for SQL query or into empty string.


© «Bitrix24», 2001-2022
Up