Beispiel #1
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\RecurringPayment\Block\Fields $recurringPaymentFields
  * @param \Magento\RecurringPayment\Model\PeriodUnits $periodUnits
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Data\FormFactory $formFactory, \Magento\RecurringPayment\Block\Fields $recurringPaymentFields, \Magento\RecurringPayment\Model\PeriodUnits $periodUnits, array $data = array())
 {
     $this->_formFactory = $formFactory;
     $this->_recurringPaymentFields = $recurringPaymentFields;
     parent::__construct($context, $data);
     $this->_periodUnits = $periodUnits;
 }
 public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
 {
     $element->setData('after_element_html', "<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script><script type=\\'text/javascript\\'>");
     // Set up additional JavaScript for our validation using jQuery.
     $element->setData('after_element_html', "\n\t        jQuery.noConflict();\n            jQuery(document).ready(function() {\n\t\t\t\tjQuery('#connector_data_mapping_enterprise_data-head').parent().hide();\n            });\n            </script>");
     return parent::_getElementHtml($element);
 }
Beispiel #3
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->_jsonEncoder = $jsonEncoder;
     $this->_coreRegistry = $registry;
     $this->_productFactory = $productFactory;
     parent::__construct($context, $data);
 }
Beispiel #4
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Catalog\Model\Config\Source\Watermark\Position $watermarkPosition
  * @param \Magento\Config\Block\System\Config\Form\Field $formField
  * @param \Magento\Framework\Data\Form\Element\Factory $elementFactory
  * @param array $imageTypes
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Catalog\Model\Config\Source\Watermark\Position $watermarkPosition, \Magento\Config\Block\System\Config\Form\Field $formField, \Magento\Framework\Data\Form\Element\Factory $elementFactory, array $imageTypes = [], array $data = [])
 {
     $this->_watermarkPosition = $watermarkPosition;
     $this->_formField = $formField;
     $this->_elementFactory = $elementFactory;
     $this->_imageTypes = $imageTypes;
     parent::__construct($context, $data);
 }
Beispiel #5
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Framework\Model\Resource\Iterator $resourceIterator
  * @param \Magento\Framework\Stdlib\DateTime $dateTime
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Framework\Model\Resource\Iterator $resourceIterator, \Magento\Framework\Stdlib\DateTime $dateTime, array $data = array())
 {
     $this->_rssFactory = $rssFactory;
     $this->_orderFactory = $orderFactory;
     $this->_resourceIterator = $resourceIterator;
     $this->_dateTime = $dateTime;
     parent::__construct($context, $data);
 }
Beispiel #6
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Framework\Model\Resource\Iterator $resourceIterator
  * @param \Magento\Review\Model\ReviewFactory $reviewFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Framework\Model\Resource\Iterator $resourceIterator, \Magento\Review\Model\ReviewFactory $reviewFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, array $data = array())
 {
     $this->_rssFactory = $rssFactory;
     $this->_resourceIterator = $resourceIterator;
     $this->_reviewFactory = $reviewFactory;
     $this->_storeManager = $storeManager;
     parent::__construct($context, $data);
 }
Beispiel #7
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\CatalogInventory\Model\Resource\StockFactory $stockFactory
  * @param \Magento\Catalog\Model\Product\Attribute\Source\Status $productStatus
  * @param \Magento\Framework\Model\Resource\Iterator $resourceIterator
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\CatalogInventory\Model\Resource\StockFactory $stockFactory, \Magento\Catalog\Model\Product\Attribute\Source\Status $productStatus, \Magento\Framework\Model\Resource\Iterator $resourceIterator, array $data = array())
 {
     $this->_rssFactory = $rssFactory;
     $this->_productFactory = $productFactory;
     $this->_stockFactory = $stockFactory;
     $this->_productStatus = $productStatus;
     $this->_resourceIterator = $resourceIterator;
     parent::__construct($context, $data);
 }
Beispiel #8
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Directory\Helper\Data $directoryHelper, array $data = [])
 {
     $this->_directoryHelper = $directoryHelper;
     parent::__construct($context, $data);
 }
Beispiel #9
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\DB\Helper $resourceHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\DB\Helper $resourceHelper, array $data = array())
 {
     $this->_resourceHelper = $resourceHelper;
     parent::__construct($context, $data);
 }
Beispiel #10
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Backend\Model\Config\Structure\Element\Dependency\FieldFactory $fieldFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Config\Structure\Element\Dependency\FieldFactory $fieldFactory, array $data = array())
 {
     $this->_jsonEncoder = $jsonEncoder;
     $this->_fieldFactory = $fieldFactory;
     parent::__construct($context, $data);
 }
 /**
  * @return void
  */
 protected function _construct()
 {
     $this->setCacheKey('rss_catalog_notifystock');
     parent::_construct();
 }
Beispiel #12
0
 /**
  * Constructor.
  *
  * @param \Magento\Backend\Block\Context      $context     Block context.
  * @param \Magento\Framework\Data\FormFactory $formFactory Form factory.
  * @param \Magento\Framework\Registry         $registry    Registry.
  * @param array                               $data        Additional data.
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->formFactory = $formFactory;
     $this->registry = $registry;
     parent::__construct($context, $data);
 }
Beispiel #13
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Review\Model\Rss $rssModel
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Review\Model\Rss $rssModel, array $data = [])
 {
     $this->storeManager = $storeManager;
     $this->rssModel = $rssModel;
     parent::__construct($context, $data);
 }
Beispiel #14
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\Framework\View\Helper\Js $jsHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\View\Helper\Js $jsHelper, array $data = [])
 {
     $this->_jsHelper = $jsHelper;
     $this->_authSession = $authSession;
     parent::__construct($context, $data);
 }
Beispiel #15
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Framework\Math\Random $mathRandom
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Math\Random $mathRandom, array $data = array())
 {
     $this->_formFactory = $formFactory;
     $this->mathRandom = $mathRandom;
     parent::__construct($context, $data);
 }
Beispiel #16
0
 /**
  * @param \Magento\Backend\Block\Context $context
  * @param \Magento\Framework\Data\Form\Element\Factory $elementFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Context $context, \Magento\Framework\Data\Form\Element\Factory $elementFactory, array $data = array())
 {
     $this->_elementFactory = $elementFactory;
     parent::__construct($context, $data);
 }