Пример #1
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\User\Model\RoleFactory $roleFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\Registry $coreRegistry, \Magento\User\Model\RoleFactory $roleFactory, array $data = [])
 {
     parent::__construct($context, $backendHelper, $data);
     $this->_jsonEncoder = $jsonEncoder;
     $this->_coreRegistry = $coreRegistry;
     $this->_roleFactory = $roleFactory;
 }
Пример #2
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Store\Model\WebsiteFactory $websiteFactory
  * @param \Magento\Eav\Model\Resource\Entity\Attribute\Set\CollectionFactory $setsFactory
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Model\Product\Type $type
  * @param \Magento\Catalog\Model\Product\Attribute\Source\Status $status
  * @param \Magento\Catalog\Model\Product\Visibility $visibility
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Store\Model\WebsiteFactory $websiteFactory, \YourCompanyName\BackendGrid\Model\Resource\ModelName\Collection $collectionFactory, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
 {
     $this->_collectionFactory = $collectionFactory;
     $this->_websiteFactory = $websiteFactory;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #3
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $eavAttSetCollection
  * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $cpCollection
  * @param \Magento\Catalog\Model\Product\Type $catalogType
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $eavAttSetCollection, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $cpCollection, \Magento\Catalog\Model\Product\Type $catalogType, array $data = [])
 {
     $this->_catalogType = $catalogType;
     $this->_cpCollection = $cpCollection;
     $this->_eavAttSetCollection = $eavAttSetCollection;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #4
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Index\Model\Resource\Process\CollectionFactory $factory
  * @param \Magento\Index\Model\Process $indexProcess
  * @param \Magento\Index\Model\EventRepository $eventRepository
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Index\Model\Resource\Process\CollectionFactory $factory, \Magento\Index\Model\Process $indexProcess, \Magento\Index\Model\EventRepository $eventRepository, array $data = array())
 {
     parent::__construct($context, $backendHelper, $data);
     $this->_eventRepository = $eventRepository;
     $this->_indexProcess = $indexProcess;
     $this->_collectionFactory = $factory;
 }
 /**
  * Information constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\Apiconnector\Test $test
  * @param \Magento\Backend\Block\Template\Context        $context
  * @param \Magento\Backend\Helper\Data                   $backendHelper
  * @param \Dotdigitalgroup\Email\Helper\Data             $helper
  * @param array                                          $data
  */
 public function __construct(\Dotdigitalgroup\Email\Model\Apiconnector\Test $test, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\App\ProductMetadataFactory $productMetadata, array $data = [])
 {
     $this->productMetadata = $productMetadata->create();
     $this->test = $test;
     $this->data = $helper;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #6
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $collectionFactory
  * @param \Magento\Sales\Helper\Reorder $salesReorder
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $collectionFactory, \Magento\Sales\Helper\Reorder $salesReorder, \Magento\Framework\Registry $coreRegistry, array $data = [])
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_salesReorder = $salesReorder;
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #7
0
 /**
  * constructor
  *
  * @param \Mageplaza\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Mageplaza\Blog\Model\PostFactory $postFactory
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param array $data
  */
 public function __construct(\Mageplaza\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory, \Magento\Framework\Registry $coreRegistry, \Mageplaza\Blog\Model\PostFactory $postFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, array $data = [])
 {
     $this->postCollectionFactory = $postCollectionFactory;
     $this->coreRegistry = $coreRegistry;
     $this->postFactory = $postFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #8
0
 /**
  * @param TemplateContext $context
  * @param BackendHelper $backendHelper
  * @param CollectionFactory $collectionFactory
  * @param Registry $coreRegistry
  * @param BillingAgreementResource $billingAgreementResource
  * @param array $data
  */
 public function __construct(TemplateContext $context, BackendHelper $backendHelper, CollectionFactory $collectionFactory, Registry $coreRegistry, BillingAgreementResource $billingAgreementResource, array $data = [])
 {
     $this->coreRegistry = $coreRegistry;
     $this->collectionFactory = $collectionFactory;
     $this->billingAgreementResource = $billingAgreementResource;
     parent::__construct($context, $backendHelper, $data);
 }
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Dotdigitalgroup\Email\Model\Adminhtml\Source\Contact\ImportedFactory $importedFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Model\Resource\Wishlist\CollectionFactory $gridFactory, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
 {
     $this->_importedFactory = $importedFactory;
     $this->_wishlistFactory = $gridFactory;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
 /**
  * Grid constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\Resource\Campaign\CollectionFactory $gridFactory
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param \Magento\Framework\ObjectManagerInterface $objectManagerInterface
  * @param array $data
  */
 public function __construct(\Dotdigitalgroup\Email\Model\Resource\Campaign\CollectionFactory $gridFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Module\Manager $moduleManager, \Magento\Framework\ObjectManagerInterface $objectManagerInterface, array $data = [])
 {
     $this->_campaignFactory = $gridFactory;
     $this->_objectManager = $objectManagerInterface;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #11
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Cms\Model\Page $cmsPage
  * @param \Magento\Cms\Model\ResourceModel\Page\CollectionFactory $collectionFactory
  * @param \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Cms\Model\Page $cmsPage, \Magento\Cms\Model\ResourceModel\Page\CollectionFactory $collectionFactory, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
 {
     $this->_collectionFactory = $collectionFactory;
     $this->_cmsPage = $cmsPage;
     $this->pageLayoutBuilder = $pageLayoutBuilder;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #12
0
 /**
  * [__construct description].
  *
  * @param \Magento\Backend\Block\Template\Context     $context            [description]
  * @param \Magento\Backend\Helper\Data                $backendHelper      [description]
  * @param \Magento\Framework\Data\Collection          $dataCollection     [description]
  * @param \Magestore\Bannerslider\Helper\Data         $bannersliderHelper [description]
  * @param array                                       $data               [description]
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Data\CollectionFactory $collectionFactory, \Magento\Framework\DataObjectFactory $objectFactory, \Magestore\Bannerslider\Helper\Data $bannersliderHelper, array $data = [])
 {
     $this->_bannersliderHelper = $bannersliderHelper;
     $this->_collectionFactory = $collectionFactory;
     $this->_objectFactory = $objectFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #13
0
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Tuna\BannerSlider\Model\ResourceModel\Slider\CollectionFactory $sliderCollectionFactory, \Tuna\BannerSlider\Helper\Data $bannersliderHelper, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
 {
     $this->_sliderCollectionFactory = $sliderCollectionFactory;
     $this->_bannersliderHelper = $bannersliderHelper;
     $this->pageLayoutBuilder = $pageLayoutBuilder;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #14
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Authorization\Model\Resource\Role\CollectionFactory $userRolesFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Authorization\Model\Resource\Role\CollectionFactory $userRolesFactory, \Magento\Framework\Registry $coreRegistry, array $data = array())
 {
     $this->_jsonEncoder = $jsonEncoder;
     $this->_userRolesFactory = $userRolesFactory;
     $this->_coreRegistry = $coreRegistry;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #15
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Reports\Model\Resource\Report\Collection\Factory $resourceFactory
  * @param \Magento\Reports\Model\Grouped\CollectionFactory $collectionFactory
  * @param \Magento\Reports\Helper\Data $reportsData
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Reports\Model\Resource\Report\Collection\Factory $resourceFactory, \Magento\Reports\Model\Grouped\CollectionFactory $collectionFactory, \Magento\Reports\Helper\Data $reportsData, array $data = array())
 {
     $this->_resourceFactory = $resourceFactory;
     $this->_collectionFactory = $collectionFactory;
     $this->_reportsData = $reportsData;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #16
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Sales\Model\QuoteFactory $quoteFactory
  * @param \Magento\Framework\Data\CollectionFactory $dataCollectionFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Sales\Model\QuoteFactory $quoteFactory, \Magento\Framework\Data\CollectionFactory $dataCollectionFactory, \Magento\Framework\Registry $coreRegistry, array $data = [])
 {
     $this->_dataCollectionFactory = $dataCollectionFactory;
     $this->_coreRegistry = $coreRegistry;
     $this->_quoteFactory = $quoteFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #17
0
 /**
  * @param CollectionFactory $articleCollectionFactory
  * @param ArticleCategory $articleCategory
  * @param Registry $registry
  * @param Context $context
  * @param BackendHelper $backendHelper
  * @param array $data
  */
 public function __construct(CollectionFactory $articleCollectionFactory, ArticleCategory $articleCategory, Registry $registry, Context $context, BackendHelper $backendHelper, array $data = array())
 {
     $this->articleCollectionFactory = $articleCollectionFactory;
     $this->articleCategory = $articleCategory;
     $this->registry = $registry;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #18
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Theme\Model\Layout\Source\Layout $pageLayout
  * @param \Magento\Cms\Model\Page $cmsPage
  * @param \Magento\Cms\Model\Resource\Page\CollectionFactory $collectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Theme\Model\Layout\Source\Layout $pageLayout, \Magento\Cms\Model\Page $cmsPage, \Magento\Cms\Model\Resource\Page\CollectionFactory $collectionFactory, array $data = array())
 {
     $this->_collectionFactory = $collectionFactory;
     $this->_cmsPage = $cmsPage;
     $this->_pageLayout = $pageLayout;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #19
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Emizentech\StoreLocator\Model\storelocatorFactory $storelocatorFactory
  * @param \Emizentech\StoreLocator\Model\Status $status
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Emizentech\StoreLocator\Model\StoreLocatorFactory $storelocatorFactory, \Emizentech\StoreLocator\Model\Status $status, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
 {
     $this->_storelocatorFactory = $storelocatorFactory;
     $this->_status = $status;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #20
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Context $context, Data $backendHelper, QueueFactory $queueFactory, ProductFactory $productFactory, array $data = [])
 {
     //        $this->moduleManager = $moduleManager;
     $this->_queueFactory = $queueFactory;
     $this->_productFactory = $productFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #21
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \SR\Weblog\Model\BlogPostsFactory $blogPostFactory
  * @param \SR\Weblog\Model\Status $status
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \SR\Weblog\Model\BlogPostsFactory $blogPostFactory, \SR\Weblog\Model\Status $status, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
 {
     $this->_blogPostFactory = $blogPostFactory;
     $this->_status = $status;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #22
0
 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Sales\Model\Resource\Order\Grid\CollectionFactory $collectionFactory
  * @param \Magento\Sales\Helper\Reorder $salesReorder
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Sales\Model\Resource\Order\Grid\CollectionFactory $collectionFactory, \Magento\Sales\Helper\Reorder $salesReorder, \Magento\Framework\Registry $coreRegistry, array $data = array())
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_salesReorder = $salesReorder;
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #23
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Paypal\Helper\Data $helper
  * @param \Magento\Paypal\Model\Resource\Billing\Agreement\CollectionFactory $agreementFactory
  * @param \Magento\Paypal\Model\Billing\Agreement $agreementModel
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Paypal\Helper\Data $helper, \Magento\Paypal\Model\Resource\Billing\Agreement\CollectionFactory $agreementFactory, \Magento\Paypal\Model\Billing\Agreement $agreementModel, array $data = array())
 {
     $this->_helper = $helper;
     $this->_agreementFactory = $agreementFactory;
     $this->_agreementModel = $agreementModel;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #24
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Cms\Model\Page $cmsPage
  * @param \Magento\Cms\Model\PageFactory $pageFactory
  * @param \Magento\Cms\Model\Resource\Page\CollectionFactory $collectionFactory
  * @param \Magento\Core\Model\PageLayout\Config\Builder $pageLayoutBuilder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Cms\Model\Page $cmsPage, \Magento\Cms\Model\PageFactory $pageFactory, \Magento\Cms\Model\Resource\Page\CollectionFactory $collectionFactory, \Magento\Core\Model\PageLayout\Config\Builder $pageLayoutBuilder, array $data = array())
 {
     $this->pageLayoutBuilder = $pageLayoutBuilder;
     $this->_cmsPage = $cmsPage;
     $this->_pageFactory = $pageFactory;
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #25
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Kuzman\ProductFaq\Model\ResourceModel\Question\CollectionFactory $collectionFactory
  * @param \Kuzman\ProductFaq\Model\ResourceModel\QuestionId\CollectionFactory $collectionIdFactory
  * @param \Kuzman\ProductFaq\Model\Question\Source\Status $status
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Registry $coreRegistry, \Kuzman\ProductFaq\Model\ResourceModel\Question\CollectionFactory $collectionFactory, \Kuzman\ProductFaq\Model\ResourceModel\QuestionId\CollectionFactory $collectionIdFactory, \Kuzman\ProductFaq\Model\Question\Source\Status $status, array $data = [])
 {
     $this->_coreRegistry = $coreRegistry;
     $this->questionColFactory = $collectionFactory;
     $this->questionIdsColFactory = $collectionIdFactory;
     $this->_status = $status;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #26
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Catalog\Model\Resource\Product\CollectionFactory $collectionFactory
  * @param \Magento\Catalog\Model\Resource\Category $resourceCategory
  * @param \Magento\Catalog\Model\Resource\Product $resourceProduct
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Model\Resource\Product\CollectionFactory $collectionFactory, \Magento\Catalog\Model\Resource\Category $resourceCategory, \Magento\Catalog\Model\Resource\Product $resourceProduct, array $data = [])
 {
     $this->_categoryFactory = $categoryFactory;
     $this->_collectionFactory = $collectionFactory;
     $this->_resourceCategory = $resourceCategory;
     $this->_resourceProduct = $resourceProduct;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #27
0
 /**
  * @param ArticleCollectionFactory $articleCollectionFactory
  * @param ArticleProduct $articleProduct
  * @param Registry $registry
  * @param ProductBuilder $productBuilder
  * @param Context $context
  * @param BackendHelper $backendHelper
  * @param array $data
  */
 public function __construct(ArticleCollectionFactory $articleCollectionFactory, ArticleProduct $articleProduct, Registry $registry, ProductBuilder $productBuilder, Context $context, BackendHelper $backendHelper, array $data = [])
 {
     $this->articleCollectionFactory = $articleCollectionFactory;
     $this->articleProduct = $articleProduct;
     $this->registry = $registry;
     $this->productBuilder = $productBuilder;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #28
0
 public function __construct(\Magento\Store\Model\System\Store $systemStore, FormFactory $formFactory, Registry $registry, ProductCollectionFactory $productCollectionFactory, ProductStatus $status, ProductVisibility $visibility, \Magento\Backend\Block\Widget\Context $context, BackendHelper $backendHelper)
 {
     $this->productCollectionFactory = $productCollectionFactory;
     $this->registry = $registry;
     $this->visibility = $visibility;
     $this->status = $status;
     parent::__construct($context, $backendHelper);
 }
Пример #29
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Model\Config $catalogConfig
  * @param \Magento\Backend\Model\Session\Quote $sessionQuote
  * @param \Magento\Sales\Model\Config $salesConfig
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Model\Config $catalogConfig, \Magento\Backend\Model\Session\Quote $sessionQuote, \Magento\Sales\Model\Config $salesConfig, array $data = [])
 {
     $this->_productFactory = $productFactory;
     $this->_catalogConfig = $catalogConfig;
     $this->_sessionQuote = $sessionQuote;
     $this->_salesConfig = $salesConfig;
     parent::__construct($context, $backendHelper, $data);
 }
Пример #30
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\GoogleShopping\Model\Resource\Item\CollectionFactory $itemCollectionFactory
  * @param \Magento\Eav\Model\Resource\Entity\Attribute\Set\CollectionFactory $eavCollectionFactory
  * @param \Magento\Catalog\Model\Product\Type $productType
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\GoogleShopping\Model\Resource\Item\CollectionFactory $itemCollectionFactory, \Magento\Eav\Model\Resource\Entity\Attribute\Set\CollectionFactory $eavCollectionFactory, \Magento\Catalog\Model\Product\Type $productType, \Magento\Catalog\Model\ProductFactory $productFactory, array $data = [])
 {
     $this->_itemCollectionFactory = $itemCollectionFactory;
     $this->_eavCollectionFactory = $eavCollectionFactory;
     $this->_productType = $productType;
     $this->_productFactory = $productFactory;
     parent::__construct($context, $backendHelper, $data);
 }