PHP 클래스 Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product

저자: Aurelien FOUCRET ([email protected])
상속: extends Magento\Rule\Model\Condition\Product\AbstractProduct
파일 보기 프로젝트 열기: smile-sa/elasticsuite 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Magento\Rule\Model\Condition\Context $context, Magento\Backend\Helper\Data $backendData, Magento\Eav\Model\Config $config, AttributeList $attributeList, QueryBuilder $queryBuilder, Magento\Catalog\Model\ProductFactory $productFactory, Magento\Catalog\Api\ProductRepositoryInterface $productRepository, Magento\Catalog\Model\ResourceModel\Product $productResource, Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection $attrSetCollection, Magento\Framework\Locale\FormatInterface $localeFormat, Magento\Config\Model\Config\Source\Yesno $booleanSource, array $data = [] ) Constructor.
getDefaultOperatorInputByType ( ) : array Default operator input by type map getter
getInputType ( ) {@inheritDoc}
getOperatorName ( ) {@inheritDoc}
getSearchQuery ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface Build a search query for the current rule.
getValue ( ) {@inheritDoc}
getValueElementType ( ) : string Retrieve value element type
getValueName ( ) {@inheritDoc}
loadAttributeOptions ( ) {@inheritDoc}
setElementName ( string $elementName ) Set the target element name (name of the input into the form).

보호된 메소드들

메소드 설명
_addSpecialAttributes ( array &$attributes )
_prepareValueOptions ( )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Magento\Rule\Model\Condition\Context $context, Magento\Backend\Helper\Data $backendData, Magento\Eav\Model\Config $config, AttributeList $attributeList, QueryBuilder $queryBuilder, Magento\Catalog\Model\ProductFactory $productFactory, Magento\Catalog\Api\ProductRepositoryInterface $productRepository, Magento\Catalog\Model\ResourceModel\Product $productResource, Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection $attrSetCollection, Magento\Framework\Locale\FormatInterface $localeFormat, Magento\Config\Model\Config\Source\Yesno $booleanSource, array $data = [] )
$context Magento\Rule\Model\Condition\Context Rule context.
$backendData Magento\Backend\Helper\Data Admin helper.
$config Magento\Eav\Model\Config EAV config.
$attributeList Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product\AttributeList Product search rule attribute list.
$queryBuilder Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product\QueryBuilder Product search rule query builder.
$productFactory Magento\Catalog\Model\ProductFactory Product factory.
$productRepository Magento\Catalog\Api\ProductRepositoryInterface Product repository.
$productResource Magento\Catalog\Model\ResourceModel\Product Product resource model.
$attrSetCollection Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\Collection Attribute set collection.
$localeFormat Magento\Framework\Locale\FormatInterface Locale format.
$booleanSource Magento\Config\Model\Config\Source\Yesno Data source for boolean select.
$data array Additional data.

_addSpecialAttributes() 보호된 메소드

protected _addSpecialAttributes ( array &$attributes )
$attributes array

_prepareValueOptions() 보호된 메소드

protected _prepareValueOptions ( )

getDefaultOperatorInputByType() 공개 메소드

Default operator input by type map getter

getInputType() 공개 메소드

{@inheritDoc}
public getInputType ( )

getOperatorName() 공개 메소드

{@inheritDoc}
public getOperatorName ( )

getSearchQuery() 공개 메소드

Build a search query for the current rule.
public getSearchQuery ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface
리턴 Smile\ElasticsuiteCore\Search\Request\QueryInterface

getValue() 공개 메소드

{@inheritDoc}
public getValue ( )

getValueElementType() 공개 메소드

Retrieve value element type
public getValueElementType ( ) : string
리턴 string

getValueName() 공개 메소드

{@inheritDoc}
public getValueName ( )

loadAttributeOptions() 공개 메소드

{@inheritDoc}

setElementName() 공개 메소드

Set the target element name (name of the input into the form).
public setElementName ( string $elementName )
$elementName string Target element name