Пример #1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Model\Product\Visibility $visibility
  * @param \Magento\Framework\Model\Resource\Iterator $resourceIterator
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Data $catalogData, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Model\Product\Visibility $visibility, \Magento\Framework\Model\Resource\Iterator $resourceIterator, \Magento\Catalog\Helper\Image $imageHelper, array $data = array())
 {
     $this->_imageHelper = $imageHelper;
     $this->_rssFactory = $rssFactory;
     $this->_productFactory = $productFactory;
     $this->_visibility = $visibility;
     $this->_resourceIterator = $resourceIterator;
     parent::__construct($context, $httpContext, $catalogData, $data);
 }
Пример #2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Framework\Model\Resource\Iterator $resourceIterator
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Catalog\Helper\Output $outputHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Framework\Model\Resource\Iterator $resourceIterator, \Magento\Catalog\Helper\Image $imageHelper, \Magento\Catalog\Helper\Output $outputHelper, array $data = array())
 {
     $this->_outputHelper = $outputHelper;
     $this->_imageHelper = $imageHelper;
     $this->_priceCurrency = $priceCurrency;
     $this->_productFactory = $productFactory;
     $this->_rssFactory = $rssFactory;
     $this->_resourceIterator = $resourceIterator;
     parent::__construct($context, $httpContext, $catalogData, $data);
 }
Пример #3
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Catalog\Model\Layer\Category $catalogLayer
  * @param \Magento\Catalog\Model\Product\Visibility $visibility
  * @param \Magento\Rss\Model\RssFactory $rssFactory
  * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Catalog\Model\Resource\Product\CollectionFactory $collectionFactory
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Customer\Model\Session $customerSession
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\Http\Context $httpContext, \Magento\Catalog\Helper\Data $catalogData, \Magento\Catalog\Model\Layer\Category $catalogLayer, \Magento\Catalog\Model\Product\Visibility $visibility, \Magento\Rss\Model\RssFactory $rssFactory, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Model\Resource\Product\CollectionFactory $collectionFactory, \Magento\Catalog\Helper\Image $imageHelper, \Magento\Customer\Model\Session $customerSession, array $data = array())
 {
     $this->_imageHelper = $imageHelper;
     $this->_catalogLayer = $catalogLayer;
     $this->_visibility = $visibility;
     $this->_rssFactory = $rssFactory;
     $this->_categoryFactory = $categoryFactory;
     $this->_collectionFactory = $collectionFactory;
     $this->customerSession = $customerSession;
     parent::__construct($context, $httpContext, $catalogData, $data);
 }