PHP Class Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData

Author: Romain Ruaud ([email protected])
Inheritance: extends Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Indexer
Mostra file Open project: smile-sa/elasticsuite Class Usage Examples

Protected Properties

Property Type Description
$indexedAttributesConditions array

Public Methods

Method Description
__construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, string $entityType = null ) AbstractAttributeData constructor.
addIndexedFilterToAttributeCollection ( Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection $attributeCollection ) : Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection Allow to filter an attribute collection on attributes that are indexed into the search engine.
getAttributesRawData ( integer $storeId, array $entityIds, string $tableName, array $attributeIds ) : array Load attribute data for a list of entity ids.

Protected Methods

Method Description
getEntityTypeId ( ) : string Get Entity Type Id.

Method Details

__construct() public method

AbstractAttributeData constructor.
public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, string $entityType = null )
$resource Magento\Framework\App\ResourceConnection Resource Connection
$storeManager Magento\Store\Model\StoreManagerInterface Store Manager
$metadataPool Magento\Framework\EntityManager\MetadataPool Entity Metadata Pool
$entityType string Entity Type

addIndexedFilterToAttributeCollection() public method

Allow to filter an attribute collection on attributes that are indexed into the search engine.
public addIndexedFilterToAttributeCollection ( Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection $attributeCollection ) : Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
$attributeCollection Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection Attribute collection (not loaded).
return Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection

getAttributesRawData() public method

Load attribute data for a list of entity ids.
public getAttributesRawData ( integer $storeId, array $entityIds, string $tableName, array $attributeIds ) : array
$storeId integer Store id.
$entityIds array Entity ids.
$tableName string Attribute table.
$attributeIds array Attribute ids to get loaded.
return array

getEntityTypeId() protected method

Get Entity Type Id.
protected getEntityTypeId ( ) : string
return string

Property Details

$indexedAttributesConditions protected_oe property

protected array $indexedAttributesConditions
return array