PHP Класс Smile\ElasticsuiteCatalog\Model\Layer\Filter\Price

Автор: Aurelien FOUCRET ([email protected])
Наследование: extends Magento\CatalogSearch\Model\Layer\Filter\Price, implements Smile\ElasticsuiteCatalog\Model\Layer\Filter\FilterInterface, use trait DecimalFilterTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Catalog\Model\Layer $layer, Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder, Magento\Catalog\Model\ResourceModel\Layer\Filter\Price $resource, Magento\Customer\Model\Session $customerSession, Magento\Framework\Search\Dynamic\Algorithm $priceAlgorithm, Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory $algorithmFactory, Magento\Catalog\Model\Layer\Filter\DataProvider\PriceFactory $dataProviderFactory, array $data = [] ) Constructor.
addFacetToCollection ( $config = [] ) {@inheritDoc}

Защищенные методы

Метод Описание
_renderRangeLabel ( $fromPrice, $toPrice )

Приватные методы

Метод Описание
getFilterField ( ) : string Retrieve ES filter field.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Catalog\Model\Layer $layer, Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder, Magento\Catalog\Model\ResourceModel\Layer\Filter\Price $resource, Magento\Customer\Model\Session $customerSession, Magento\Framework\Search\Dynamic\Algorithm $priceAlgorithm, Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory $algorithmFactory, Magento\Catalog\Model\Layer\Filter\DataProvider\PriceFactory $dataProviderFactory, array $data = [] )
$filterItemFactory Magento\Catalog\Model\Layer\Filter\ItemFactory Item filter facotory.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.
$layer Magento\Catalog\Model\Layer Search layer.
$itemDataBuilder Magento\Catalog\Model\Layer\Filter\Item\DataBuilder Item data builder.
$resource Magento\Catalog\Model\ResourceModel\Layer\Filter\Price Price resource.
$customerSession Magento\Customer\Model\Session Customer session.
$priceAlgorithm Magento\Framework\Search\Dynamic\Algorithm Price algorithm.
$priceCurrency Magento\Framework\Pricing\PriceCurrencyInterface Price currency.
$algorithmFactory Magento\Catalog\Model\Layer\Filter\Dynamic\AlgorithmFactory Algorithm factory.
$dataProviderFactory Magento\Catalog\Model\Layer\Filter\DataProvider\PriceFactory Data provider.
$data array Custom data.

_renderRangeLabel() защищенный Метод

protected _renderRangeLabel ( $fromPrice, $toPrice )

addFacetToCollection() публичный Метод

{@inheritDoc}
public addFacetToCollection ( $config = [] )