PHP 클래스 Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product\AttributeList

저자: Aurelien FOUCRET ([email protected])
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeCollectionFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexManager, Mapping $mappingHelper, string $indexName = 'catalog_product', string $typeName = 'product' ) Constructor.
getAttributeCollection ( ) : Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection Retrieve attribute collection prefiltered with only attribute usable in rules.
getField ( string $attributeName ) : Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface Retrieve the mapping field for the rule attribute.

비공개 메소드들

메소드 설명
getMapping ( ) : Smile\ElasticsuiteCore\Api\Index\MappingInterface Retrieve the search engine mapping.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $attributeCollectionFactory, Magento\Store\Model\StoreManagerInterface $storeManager, Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface $indexManager, Mapping $mappingHelper, string $indexName = 'catalog_product', string $typeName = 'product' )
$attributeCollectionFactory Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory Product attribute collection factory.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.
$indexManager Smile\ElasticsuiteCore\Api\Index\IndexOperationInterface Search engine index manager.
$mappingHelper Smile\ElasticsuiteCore\Helper\Mapping Mapping helper.
$indexName string Search engine index name.
$typeName string Search engine type name.

getAttributeCollection() 공개 메소드

Retrieve attribute collection prefiltered with only attribute usable in rules.
public getAttributeCollection ( ) : Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection
리턴 Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection

getField() 공개 메소드

Retrieve the mapping field for the rule attribute.
public getField ( string $attributeName ) : Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface
$attributeName string Attribute code.
리턴 Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface