PHP 클래스 Smile\ElasticsuiteCatalog\Setup\InstallData

저자: Romain Ruaud ([email protected])
저자: Aurelien FOUCRET ([email protected])
상속: implements Magento\Framework\Setup\InstallDataInterface
파일 보기 프로젝트 열기: smile-sa/elasticsuite

공개 메소드들

메소드 설명
__construct ( Magento\Eav\Setup\EavSetupFactory $eavSetupFactory, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Framework\Indexer\IndexerInterfaceFactory $indexerFactory ) Class Constructor
install ( Magento\Framework\Setup\ModuleDataSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void

비공개 메소드들

메소드 설명
addCategoryNameSearchAttribute ( ) : void Create attribute on category to enable/disable name indexation for search.
getConnection ( ) : Magento\Framework\DB\Adapter\AdapterInterface DB connection.
getIndexer ( string $indexerId ) : Magento\Framework\Indexer\IndexerInterface Retrieve an indexer by its Id
updateAttributeDefaultValue ( integer | string $entityTypeId, integer | string $attributeId, mixed $value, array $excludedIds = [] ) : void Update attribute value for an entity with a default value.
updateCategoryIsAnchorAttribute ( ) : void Update is anchor attribute (hidden frontend input, null source model, enabled by default).
updateDefaultValuesForNameAttributes ( ) : void Update default values for the name field of category and product entities.

메소드 상세

__construct() 공개 메소드

Class Constructor
public __construct ( Magento\Eav\Setup\EavSetupFactory $eavSetupFactory, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Framework\Indexer\IndexerInterfaceFactory $indexerFactory )
$eavSetupFactory Magento\Eav\Setup\EavSetupFactory Eav setup factory.
$metadataPool Magento\Framework\EntityManager\MetadataPool Metadata Pool.
$indexerFactory Magento\Framework\Indexer\IndexerInterfaceFactory Indexer Factory.

install() 공개 메소드

public install ( Magento\Framework\Setup\ModuleDataSetupInterface $setup, Magento\Framework\Setup\ModuleContextInterface $context ) : void
$setup Magento\Framework\Setup\ModuleDataSetupInterface The setup interface
$context Magento\Framework\Setup\ModuleContextInterface The module Context
리턴 void