Пример #1
0
 /**
  * Constructor.
  *
  * @param \Magento\Rule\Model\Condition\Context                              $context          Rule context.
  * @param \Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\ProductFactory $conditionFactory Product condition factory.
  * @param \Smile\ElasticsuiteCore\Search\Request\Query\QueryFactory          $queryFactory     Search query factory.
  * @param array                                                              $data             Additional data.
  */
 public function __construct(\Magento\Rule\Model\Condition\Context $context, \Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\ProductFactory $conditionFactory, \Smile\ElasticsuiteCore\Search\Request\Query\QueryFactory $queryFactory, array $data = [])
 {
     $this->productConditionFactory = $conditionFactory;
     $this->queryFactory = $queryFactory;
     parent::__construct($context, $data);
     $this->setType($this->type);
 }
Пример #2
0
 /**
  * @param \Magento\Rule\Model\Condition\Context $context
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\SalesRule\Model\Rule\Condition\Address $conditionAddress
  * @param array $data
  */
 public function __construct(\Magento\Rule\Model\Condition\Context $context, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\SalesRule\Model\Rule\Condition\Address $conditionAddress, array $data = [])
 {
     $this->_eventManager = $eventManager;
     $this->_conditionAddress = $conditionAddress;
     parent::__construct($context, $data);
     $this->setType('Magento\\SalesRule\\Model\\Rule\\Condition\\Combine');
 }
Пример #3
0
 /**
  * @param \Magento\Rule\Model\Condition\Context $context
  * @param \Magento\SalesRule\Model\Rule\Condition\Product $ruleConditionProduct
  * @param array $data
  */
 public function __construct(\Magento\Rule\Model\Condition\Context $context, \Magento\SalesRule\Model\Rule\Condition\Product $ruleConditionProduct, array $data = array())
 {
     parent::__construct($context, $data);
     $this->_ruleConditionProd = $ruleConditionProduct;
     $this->setType('Magento\\SalesRule\\Model\\Rule\\Condition\\Product\\Combine');
 }
Пример #4
0
 /**
  * @param \Magento\Rule\Model\Condition\Context $context
  * @param \Magento\CatalogWidget\Model\Rule\Condition\ProductFactory $conditionFactory
  * @param array $data
  */
 public function __construct(\Magento\Rule\Model\Condition\Context $context, \Magento\CatalogWidget\Model\Rule\Condition\ProductFactory $conditionFactory, array $data = [])
 {
     $this->productFactory = $conditionFactory;
     parent::__construct($context, $data);
     $this->setType('Magento\\CatalogWidget\\Model\\Rule\\Condition\\Combine');
 }
Пример #5
0
 /**
  * @param \Magento\Rule\Model\Condition\Context $context
  * @param \Bluecom\ProductSlider\Model\Rule\Condition\ProductFactory $conditionFactory
  * @param array $data
  */
 public function __construct(\Magento\Rule\Model\Condition\Context $context, \Bluecom\ProductSlider\Model\Rule\Condition\ProductFactory $conditionFactory, array $data = [])
 {
     $this->productFactory = $conditionFactory;
     parent::__construct($context, $data);
     $this->setType('Bluecom\\ProductSlider\\Model\\Rule\\Condition\\Combine');
 }