PHP Class Smile\ElasticsuiteCatalogRule\Model\Rule

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Magento\Rule\Model\AbstractModel
Datei anzeigen Open project: smile-sa/elasticsuite Class Usage Examples

Protected Properties

Property Type Description
$conditionsFactory Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory
$elementName string

Public Methods

Method Description
__construct ( Magento\Framework\Model\Context $context, Magento\Framework\Registry $registry, Magento\Framework\Data\FormFactory $formFactory, Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory $conditionsFactory, array $data = [] ) Constructor.
getActionsInstance ( ) {@inheritDoc}
getConditions ( ) {@inheritDoc}
getConditionsInstance ( ) {@inheritDoc}
getSearchQuery ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface Build a search query for the current rule.
setElementName ( string $elementName ) Set the target element name (name of the input into the form).

Method Details

__construct() public method

Constructor.
public __construct ( Magento\Framework\Model\Context $context, Magento\Framework\Registry $registry, Magento\Framework\Data\FormFactory $formFactory, Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory $conditionsFactory, array $data = [] )
$context Magento\Framework\Model\Context Context.
$registry Magento\Framework\Registry Registry.
$formFactory Magento\Framework\Data\FormFactory Form factory.
$localeDate Magento\Framework\Stdlib\DateTime\TimezoneInterface Locale date.
$conditionsFactory Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory Search engine rule condition factory.
$data array Additional data.

getActionsInstance() public method

{@inheritDoc}
public getActionsInstance ( )

getConditions() public method

{@inheritDoc}
public getConditions ( )

getConditionsInstance() public method

{@inheritDoc}

getSearchQuery() public method

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

setElementName() public method

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

Property Details

$conditionsFactory protected_oe property

protected CombineFactory,Smile\ElasticsuiteCatalogRule\Model\Rule\Condition $conditionsFactory
return Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\CombineFactory

$elementName protected_oe property

protected string $elementName
return string