Exemplo n.º 1
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $collectionFactory
  * @param \Magento\Catalog\Helper\Catalog $helperCatalog
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $collectionFactory, \Magento\Catalog\Helper\Catalog $helperCatalog, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->_collectionFactory = $collectionFactory;
     $this->_coreRegistry = $registry;
     $this->_helperCatalog = $helperCatalog;
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 2
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\User\Model\Resource\User\CollectionFactory $userCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Sugarcode\Test\Model\TestFactory $testFactory, \Magento\Backend\Model\Auth\Session $authSession, \Sugarcode\Test\Model\Resource\Test\CollectionFactory $userCollectionFactory, array $data = [])
 {
     // _userCollectionFactory is used in parent::__construct
     $this->_testFactory = $testFactory;
     $this->_objectManager = $objectManager;
     $this->_jsonEncoder = $jsonEncoder;
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 3
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param \Magento\Eav\Model\Resource\Entity\Attribute\Group\CollectionFactory $collectionFactory
  * @param \Magento\Catalog\Helper\Catalog $helperCatalog
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Translate\InlineInterface $translateInline
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Module\Manager $moduleManager, \Magento\Eav\Model\Resource\Entity\Attribute\Group\CollectionFactory $collectionFactory, \Magento\Catalog\Helper\Catalog $helperCatalog, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\Registry $registry, \Magento\Framework\Translate\InlineInterface $translateInline, array $data = [])
 {
     $this->_moduleManager = $moduleManager;
     $this->_collectionFactory = $collectionFactory;
     $this->_helperCatalog = $helperCatalog;
     $this->_catalogData = $catalogData;
     $this->_coreRegistry = $registry;
     $this->_translateInline = $translateInline;
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 4
0
 public function __construct(\Ess\M2ePro\Block\Adminhtml\Magento\Context\Template $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, array $data = [])
 {
     $this->helperFactory = $context->getHelperFactory();
     $this->modelFactory = $context->getModelFactory();
     $this->activeRecordFactory = $context->getActiveRecordFactory();
     $this->parentFactory = $context->getParentFactory();
     $this->css = $context->getCss();
     $this->jsPhp = $context->getJsPhp();
     $this->js = $context->getJs();
     $this->jsTranslator = $context->getJsTranslator();
     $this->jsUrl = $context->getJsUrl();
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 5
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Registry $registry, array $data = array())
 {
     $this->_coreRegistry = $registry;
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 6
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\User\Model\Resource\User\CollectionFactory $userCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\User\Model\Resource\User\CollectionFactory $userCollectionFactory, array $data = [])
 {
     // _userCollectionFactory is used in parent::__construct
     $this->_userCollectionFactory = $userCollectionFactory;
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 7
0
 /**
  * @param Context $context
  * @param EncoderInterface $jsonEncoder
  * @param Session $authSession
  * @param Manager $moduleManager
  * @param CollectionFactory $collectionFactory
  * @param Catalog $helperCatalog
  * @param Data $catalogData
  * @param Registry $registry
  * @param InlineInterface $translateInline
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Context $context, EncoderInterface $jsonEncoder, Session $authSession, Manager $moduleManager, CollectionFactory $collectionFactory, Catalog $helperCatalog, Data $catalogData, Registry $registry, InlineInterface $translateInline, array $data = [])
 {
     $this->_moduleManager = $moduleManager;
     $this->_collectionFactory = $collectionFactory;
     $this->_helperCatalog = $helperCatalog;
     $this->_catalogData = $catalogData;
     $this->_coreRegistry = $registry;
     $this->_translateInline = $translateInline;
     parent::__construct($context, $jsonEncoder, $authSession, $data);
 }
Exemplo n.º 8
0
 /**
  * Constructor
  *
  * @param Registry         $registry
  * @param Context          $context
  * @param EncoderInterface $jsonEncoder
  * @param Session          $authSession
  */
 public function __construct(Registry $registry, Context $context, EncoderInterface $jsonEncoder, Session $authSession)
 {
     $this->registry = $registry;
     return parent::__construct($context, $jsonEncoder, $authSession);
 }