PHP Класс Smile\ElasticsuiteCatalog\Model\Autocomplete\Category\DataProvider

Автор: Romain Ruaud ([email protected])
Наследование: implements Magento\Search\Model\Autocomplete\DataProviderInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$categoryCollectionFactory Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory
$configurationHelper Smile\ElasticsuiteCatalog\Helper\Autocomplete
$itemFactory ItemFactory Autocomplete result item factory
$queryFactory Magento\Search\Model\QueryFactory Query factory
$termDataProvider Smile\ElasticsuiteCore\Model\Autocomplete\Terms\DataProvider

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

Метод Описание
__construct ( ItemFactory $itemFactory, Magento\Search\Model\QueryFactory $queryFactory, DataProvider $termDataProvider, Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory $categoryCollectionFactory, Autocomplete $configurationHelper, string $type = self::AUTOCOMPLETE_TYPE ) Constructor.
getItems ( ) {@inheritDoc}
getType ( ) : string

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

Метод Описание
getCategoryCollection ( ) : Collection | null Suggested categories collection.
getResultsPageSize ( ) : integer Retrieve number of categories to display in autocomplete results
getSuggestedTerms ( ) : array List of search terms suggested by the search terms data provider.

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

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

Constructor.
public __construct ( ItemFactory $itemFactory, Magento\Search\Model\QueryFactory $queryFactory, DataProvider $termDataProvider, Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory $categoryCollectionFactory, Autocomplete $configurationHelper, string $type = self::AUTOCOMPLETE_TYPE )
$itemFactory ItemFactory Suggest item factory.
$queryFactory Magento\Search\Model\QueryFactory Search query factory.
$termDataProvider Smile\ElasticsuiteCore\Model\Autocomplete\Terms\DataProvider Search terms suggester.
$categoryCollectionFactory Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory Category collection factory.
$configurationHelper Smile\ElasticsuiteCatalog\Helper\Autocomplete Autocomplete configuration helper.
$type string Autocomplete provider type.

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

{@inheritDoc}
public getItems ( )

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

public getType ( ) : string
Результат string

Описание свойств

$categoryCollectionFactory защищенное свойство

protected CollectionFactory,Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext $categoryCollectionFactory
Результат Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\CollectionFactory

$configurationHelper защищенное свойство

protected Autocomplete,Smile\ElasticsuiteCatalog\Helper $configurationHelper
Результат Smile\ElasticsuiteCatalog\Helper\Autocomplete

$itemFactory защищенное свойство

Autocomplete result item factory
protected ItemFactory,Smile\ElasticsuiteCatalog\Model\Autocomplete\Category $itemFactory
Результат ItemFactory

$queryFactory защищенное свойство

Query factory
protected QueryFactory,Magento\Search\Model $queryFactory
Результат Magento\Search\Model\QueryFactory

$termDataProvider защищенное свойство

protected DataProvider,Smile\ElasticsuiteCore\Model\Autocomplete\Terms $termDataProvider
Результат Smile\ElasticsuiteCore\Model\Autocomplete\Terms\DataProvider