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

저자: Aurelien FOUCRET ([email protected])
상속: extends Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Indexer
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Eav\Model\Config $eavConfig ) CategoryData constructor.
loadCategoryData ( integer $storeId, array $productIds ) : array Load categories data for a list of product ids and a given store.

보호된 메소드들

메소드 설명
getCategoryNameAttribute ( ) : Magento\Eav\Model\Entity\Attribute\AbstractAttribute Returns category name attribute
getCategoryProductSelect ( array $productIds, integer $storeId ) : Zend_Db_Select Prepare indexed data select.
getEavConfig ( ) : Magento\Eav\Model\Config Access to EAV configuration.
getUseNameInSearchAttribute ( ) : Magento\Eav\Model\Entity\Attribute\AbstractAttribute Returns category "use name in product search" attribute

비공개 메소드들

메소드 설명
loadCategoryNames ( array $categoryIds, integer $storeId ) : array Add some categories name into the cache of names of categories.
prepareCategoryNameSelect ( array $loadCategoryIds, integer $storeId ) : Magento\Framework\DB\Select Prepare SQL query to retrieve category names

메소드 상세

__construct() 공개 메소드

CategoryData constructor.
public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Eav\Model\Config $eavConfig )
$resource Magento\Framework\App\ResourceConnection Connection Resource
$storeManager Magento\Store\Model\StoreManagerInterface The store manager
$metadataPool Magento\Framework\EntityManager\MetadataPool Metadata Pool
$eavConfig Magento\Eav\Model\Config EAV Configuration

getCategoryNameAttribute() 보호된 메소드

Returns category name attribute
protected getCategoryNameAttribute ( ) : Magento\Eav\Model\Entity\Attribute\AbstractAttribute
리턴 Magento\Eav\Model\Entity\Attribute\AbstractAttribute

getCategoryProductSelect() 보호된 메소드

Prepare indexed data select.
protected getCategoryProductSelect ( array $productIds, integer $storeId ) : Zend_Db_Select
$productIds array Product ids.
$storeId integer Store id.
리턴 Zend_Db_Select

getEavConfig() 보호된 메소드

Access to EAV configuration.
protected getEavConfig ( ) : Magento\Eav\Model\Config
리턴 Magento\Eav\Model\Config

getUseNameInSearchAttribute() 보호된 메소드

Returns category "use name in product search" attribute
protected getUseNameInSearchAttribute ( ) : Magento\Eav\Model\Entity\Attribute\AbstractAttribute
리턴 Magento\Eav\Model\Entity\Attribute\AbstractAttribute

loadCategoryData() 공개 메소드

Load categories data for a list of product ids and a given store.
public loadCategoryData ( integer $storeId, array $productIds ) : array
$storeId integer Store id.
$productIds array Product ids list.
리턴 array