Facet
Facet class is used for generating queries with faceted indices.
Class methods
Method | Description | Available from version |
---|---|---|
addDatetimePropertyFilter | Adds condition by Date/Time property for further filtering. | |
addDictionaryPropertyFilter | Adds condition by string property for further filtering. | |
addNumericPropertyFilter | Adds condition by string property for further filtering. | |
addPriceFilter | Adds condition by price for further filtering. | |
enableCurrencyConversion | After calling this method all subsequent queries will be automatically using converted currency for filtering. | |
getDictionary | Returns dictionary object of faceted indices. | |
getIblockId | Returns iblock ID. | |
getSkuIblockId | Returns SKU iblock ID. | |
getSkuPropertyId | Returns SKU property ID. | |
getStorage | Returns storage object for faceted indices. | |
isEmptyWhere | Returns true, if filters were not applied. | |
isValid | Returns true, if filter overwriting is available. | |
lookupDictionaryValue | Returns string by its ID in dictionary. | |
query | Returns connection with index tables for filtering. | |
setPrices | Sets prices for further filtering. Returns instance of this object for a call chain. | |
setSectionId | Sets section parameters for further filtering. Returns instance of this object for a call chain. | |
whereToSql | Converts structured array $where into condition for SQL query or into empty string. |
© «Bitrix24», 2001-2024