예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getImage($product, $imageId, $attributes = array())
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getImage');
     if (!$pluginInfo) {
         return parent::getImage($product, $imageId, $attributes);
     } else {
         return $this->___callPlugins('getImage', func_get_args(), $pluginInfo);
     }
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function offsetGet($offset)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'offsetGet');
     if (!$pluginInfo) {
         return parent::offsetGet($offset);
     } else {
         return $this->___callPlugins('offsetGet', func_get_args(), $pluginInfo);
     }
 }
예제 #3
0
 /**
  * @param \Magento\Catalog\Block\Product\Context $context
  * @param \Magento\Framework\Url\EncoderInterface $urlEncoder
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\Stdlib\StringUtils $string
  * @param \Magento\Catalog\Helper\Product $productHelper
  * @param \Magento\Catalog\Model\ProductTypes\ConfigInterface $productTypeConfig
  * @param \Magento\Framework\Locale\FormatInterface $localeFormat
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository
  * @param \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency
  * @param \Magento\Review\Model\ResourceModel\Review\CollectionFactory $collectionFactory
  * @param \Tobai\BuyerReview\Model\Buyer $buyer
  * @param \Tobai\BuyerReview\Model\Config\General $generalConfig
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Url\EncoderInterface $urlEncoder, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\Stdlib\StringUtils $string, \Magento\Catalog\Helper\Product $productHelper, \Magento\Catalog\Model\ProductTypes\ConfigInterface $productTypeConfig, \Magento\Framework\Locale\FormatInterface $localeFormat, \Magento\Customer\Model\Session $customerSession, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository, \Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency, \Magento\Review\Model\ResourceModel\Review\CollectionFactory $collectionFactory, \Tobai\BuyerReview\Model\Buyer $buyer, \Tobai\BuyerReview\Model\Config\General $generalConfig, array $data = [])
 {
     $this->buyer = $buyer;
     $this->generalConfig = $generalConfig;
     parent::__construct($context, $urlEncoder, $jsonEncoder, $string, $productHelper, $productTypeConfig, $localeFormat, $customerSession, $productRepository, $priceCurrency, $collectionFactory, $data);
 }