PHP 클래스 Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Indexer\Fulltext\Datasource\AttributeData

저자: Aurelien FOUCRET ([email protected])
상속: extends Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData
파일 보기 프로젝트 열기: smile-sa/elasticsuite

공개 메소드들

메소드 설명
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Catalog\Model\Product\Type $catalogProductType, string $entityType = ProductInterface::class ) Constructor.
loadChildrens ( array $productIds ) : array Retrieve list of children ids for a product list.

보호된 메소드들

메소드 설명
getEntityTypeId ( ) : string Get Entity Id used by this indexer
getProductEmulator ( string $typeId ) : Magento\Framework\DataObject Retrieve Product Emulator (Magento Object) by type identifier.
getProductTypeInstance ( string $typeId ) : Magento\Catalog\Model\Product\Type\AbstractType Retrieve product type instance from identifier.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Catalog\Model\Product\Type $catalogProductType, string $entityType = ProductInterface::class )
$resource Magento\Framework\App\ResourceConnection Database adpater.
$storeManager Magento\Store\Model\StoreManagerInterface Store manager.
$metadataPool Magento\Framework\EntityManager\MetadataPool Metadata Pool.
$catalogProductType Magento\Catalog\Model\Product\Type Product type.
$entityType string Product entity type.

getEntityTypeId() 보호된 메소드

Get Entity Id used by this indexer
protected getEntityTypeId ( ) : string
리턴 string

getProductEmulator() 보호된 메소드

Retrieve Product Emulator (Magento Object) by type identifier.
protected getProductEmulator ( string $typeId ) : Magento\Framework\DataObject
$typeId string Type identifier.
리턴 Magento\Framework\DataObject

getProductTypeInstance() 보호된 메소드

Retrieve product type instance from identifier.
protected getProductTypeInstance ( string $typeId ) : Magento\Catalog\Model\Product\Type\AbstractType
$typeId string Type identifier.
리턴 Magento\Catalog\Model\Product\Type\AbstractType

loadChildrens() 공개 메소드

Warning the result use children ids as a key and list of parents as value
public loadChildrens ( array $productIds ) : array
$productIds array List of parent product ids.
리턴 array