PHP Класс Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product

Автор: Aurelien FOUCRET ([email protected])
Наследование: extends Magento\Rule\Model\Condition\Product\AbstractProduct
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__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
public getDefaultOperatorInputByType ( ) : array
Результат array

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