alex19pov31 / bitrix_facet_helper
Helper for bitrix facet index
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/alex19pov31/bitrix_facet_helper
Requires
- php: >=7.0
- illuminate/support: ^v5.4
Requires (Dev)
- phpunit/phpunit: ^5.0
This package is auto-updated.
Last update: 2025-10-13 14:45:32 UTC
README
Bitrix facet helper
Хелпер для работы с фасетными индексами.
Установка
composer require alex19pov31/bitrix_facet_helper
Использование
<?php use Alex19pov31\BitrixFacetHelper\FacetFilter; $facetResult = (new FacetFilter('catalog')) ->getList([ 'ACTIVE' => 'Y', 'PROPERTY_COLOR' => 'brown', ]); $facetResult->getValues(); // Количество элементов после фильтрации $facetResult->getElementCount(); // Список значений свойства $facetResult->getProperty('COLOR')->getValues(); // Список значений элементов справочника $facetResult->getProperty('COLOR')->getDictValues(); //$facetResult['COLOR']->getDictValues(); $facetResult->getProperty('PRICE_BASE')->getMinValue(); $facetResult->getProperty('PRICE_BASE')->getMaxValue(); $facetResult->getProperty('PRICE_BASE')->getOriginMinValue(); $facetResult->getProperty('PRICE_BASE')->getOriginMaxValue(); $facetResult->getProperty('PRICE_BASE')->isValidValues();