PHP 클래스 Smile\ElasticsuiteCatalog\Model\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData

저자: Romain Ruaud ([email protected])
파일 보기 프로젝트 열기: smile-sa/elasticsuite

보호된 프로퍼티들

프로퍼티 타입 설명
$attributeHelper Smile\ElasticsuiteCatalog\Helper\Attribute
$attributeIdsByTable array
$attributesById array
$fieldFactory Smile\ElasticsuiteCore\Index\Mapping\FieldFactory
$fields array
$indexedBackendModels array
$resourceModel Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData

공개 메소드들

메소드 설명
__construct ( AbstractAttributeData $resourceModel, Smile\ElasticsuiteCore\Index\Mapping\FieldFactory $fieldFactory, Attribute $attributeHelper, array $indexedBackendModels = [] ) Constructor
getFields ( ) List of fields generated from the attributes list.

보호된 메소드들

메소드 설명
loadAttributesRawData ( integer $storeId, array $entityIds, string $tableName, array $attributeIds ) : array Load attribute data from the database.

비공개 메소드들

메소드 설명
canIndexAttribute ( Magento\Eav\Model\Entity\Attribute\AttributeInterface $attribute ) : boolean Check if an attribute can be indexed.
initAttributes ( ) : AbstractAttributeData Init attributes used into ES.
initField ( Magento\Eav\Model\Entity\Attribute\AttributeInterface $attribute ) : AbstractAttributeData Create a mapping field from an attribute.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( AbstractAttributeData $resourceModel, Smile\ElasticsuiteCore\Index\Mapping\FieldFactory $fieldFactory, Attribute $attributeHelper, array $indexedBackendModels = [] )
$resourceModel Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData Resource model.
$fieldFactory Smile\ElasticsuiteCore\Index\Mapping\FieldFactory Mapping field factory.
$attributeHelper Smile\ElasticsuiteCatalog\Helper\Attribute Attribute helper.
$indexedBackendModels array List of indexed backend models added to the default list.

getFields() 공개 메소드

This list is used to generate the catalog_product ES mapping. {@inheritdoc}
public getFields ( )

loadAttributesRawData() 보호된 메소드

Load attribute data from the database.
protected loadAttributesRawData ( integer $storeId, array $entityIds, string $tableName, array $attributeIds ) : array
$storeId integer Store id.
$entityIds array Entity ids.
$tableName string Attribute table name.
$attributeIds array Loaded attribute ids.
리턴 array

프로퍼티 상세

$attributeHelper 보호되어 있는 프로퍼티

protected Attribute,Smile\ElasticsuiteCatalog\Helper $attributeHelper
리턴 Smile\ElasticsuiteCatalog\Helper\Attribute

$attributeIdsByTable 보호되어 있는 프로퍼티

protected array $attributeIdsByTable
리턴 array

$attributesById 보호되어 있는 프로퍼티

protected array $attributesById
리턴 array

$fieldFactory 보호되어 있는 프로퍼티

protected FieldFactory,Smile\ElasticsuiteCore\Index\Mapping $fieldFactory
리턴 Smile\ElasticsuiteCore\Index\Mapping\FieldFactory

$fields 보호되어 있는 프로퍼티

protected array $fields
리턴 array

$indexedBackendModels 보호되어 있는 프로퍼티

protected array $indexedBackendModels
리턴 array

$resourceModel 보호되어 있는 프로퍼티

protected AbstractAttributeData,Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource $resourceModel
리턴 Smile\ElasticsuiteCatalog\Model\ResourceModel\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData