PHP 클래스 Smile\ElasticsuiteCatalog\Helper\Autocomplete

저자: Romain Ruaud ([email protected])
상속: extends Smile\ElasticsuiteCore\Helper\Autocomplete
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, Mapping $mappingHelper ) Constructor.
getAttributeAutocompleteField ( Magento\Catalog\Api\Data\ProductAttributeInterface $attribute ) : string ES field used in attribute autocomplete.
isShowOutOfStock ( integer $storeId = null ) : boolean Check if Stock configuration allows to display out of stock products

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Framework\App\Helper\Context $context, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, Mapping $mappingHelper )
$context Magento\Framework\App\Helper\Context Helper context.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.
$stockConfiguration Magento\CatalogInventory\Api\StockConfigurationInterface Stock Configuration Interface.
$mappingHelper Smile\ElasticsuiteCore\Helper\Mapping Mapping helper.

getAttributeAutocompleteField() 공개 메소드

ES field used in attribute autocomplete.
public getAttributeAutocompleteField ( Magento\Catalog\Api\Data\ProductAttributeInterface $attribute ) : string
$attribute Magento\Catalog\Api\Data\ProductAttributeInterface Attribute.
리턴 string

isShowOutOfStock() 공개 메소드

Check if Stock configuration allows to display out of stock products
public isShowOutOfStock ( integer $storeId = null ) : boolean
$storeId integer The store Id. Will use current store if null.
리턴 boolean