PHP Класс Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Indexer\Fulltext\Datasource\CategoryData

Автор: Aurelien FOUCRET ([email protected])
Наследование: extends Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Indexer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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