PHP 클래스 Smile\ElasticsuiteCatalog\Model\Autocomplete\Category\DataProvider

저자: Romain Ruaud ([email protected])
상속: implements Magento\Search\Model\Autocomplete\DataProviderInterface
파일 보기 프로젝트 열기: smile-sa/elasticsuite

보호된 프로퍼티들

프로퍼티 타입 설명
$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