/** * @param \Magento\Framework\Model\ResourceModel\Db\Context $context * @param \Psr\Log\LoggerInterface $logger * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate * @param \Magento\Reports\Model\FlagFactory $reportsFlagFactory * @param \Magento\Framework\Stdlib\DateTime $dateTime * @param \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator * @param \Magento\Catalog\Model\ResourceModel\Product $productResource * @param \Magento\Sales\Model\ResourceModel\Helper $salesResourceHelper * @param array $ignoredProductTypes * @param string $connectionName * @SuppressWarnings(PHPMD.ExcessiveParameterList) */ public function __construct( \Magento\Framework\Model\ResourceModel\Db\Context $context, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Reports\Model\FlagFactory $reportsFlagFactory, \Magento\Framework\Stdlib\DateTime $dateTime, \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator, \Magento\Catalog\Model\ResourceModel\Product $productResource, \Magento\Sales\Model\ResourceModel\Helper $salesResourceHelper, $connectionName = null, array $ignoredProductTypes = [] ) { parent::__construct( $context, $logger, $localeDate, $reportsFlagFactory, $dateTime, $timezoneValidator, $connectionName ); $this->_productResource = $productResource; $this->_salesResourceHelper = $salesResourceHelper; $this->ignoredProductTypes = array_merge($this->ignoredProductTypes, $ignoredProductTypes); }
/** * @param \Magento\Framework\App\Resource $resource * @param \Magento\Framework\Logger $logger * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate * @param \Magento\Reports\Model\FlagFactory $reportsFlagFactory * @param \Magento\Framework\Stdlib\DateTime $dateTime * @param \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator * @param \Magento\Catalog\Model\Resource\Product $productResource * @param \Magento\Sales\Model\Resource\Helper $salesResourceHelper * @param array $ignoredProductTypes */ public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Framework\Logger $logger, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Reports\Model\FlagFactory $reportsFlagFactory, \Magento\Framework\Stdlib\DateTime $dateTime, \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator, \Magento\Catalog\Model\Resource\Product $productResource, \Magento\Sales\Model\Resource\Helper $salesResourceHelper, array $ignoredProductTypes = array()) { parent::__construct($resource, $logger, $localeDate, $reportsFlagFactory, $dateTime, $timezoneValidator); $this->_productResource = $productResource; $this->_salesResourceHelper = $salesResourceHelper; $this->ignoredProductTypes = array_merge($this->ignoredProductTypes, $ignoredProductTypes); }
/** * @param \Magento\Framework\Model\ResourceModel\Db\Context $context * @param \Psr\Log\LoggerInterface $logger * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate * @param \Magento\Reports\Model\FlagFactory $reportsFlagFactory * @param \Magento\Framework\Stdlib\DateTime $dateTime * @param \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator * @param \Magento\Sales\Model\ResourceModel\Report\Order\CreatedatFactory $createDatFactory * @param \Magento\Sales\Model\ResourceModel\Report\Order\UpdatedatFactory $updateDatFactory * @param string $connectionName */ public function __construct( \Magento\Framework\Model\ResourceModel\Db\Context $context, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Reports\Model\FlagFactory $reportsFlagFactory, \Magento\Framework\Stdlib\DateTime $dateTime, \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator, \Magento\Sales\Model\ResourceModel\Report\Order\CreatedatFactory $createDatFactory, \Magento\Sales\Model\ResourceModel\Report\Order\UpdatedatFactory $updateDatFactory, $connectionName = null ) { parent::__construct( $context, $logger, $localeDate, $reportsFlagFactory, $dateTime, $timezoneValidator, $connectionName ); $this->_createDatFactory = $createDatFactory; $this->_updateDatFactory = $updateDatFactory; }
/** * Add report/products breadcrumbs * * @return $this */ public function _initAction() { parent::_initAction(); $this->_addBreadcrumb(__('Products'), __('Products')); return $this; }
/** * @param \Magento\Framework\App\Resource $resource * @param \Magento\Framework\Logger $logger * @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate * @param \Magento\Reports\Model\FlagFactory $reportsFlagFactory * @param \Magento\Framework\Stdlib\DateTime $dateTime * @param \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator * @param \Magento\Sales\Model\Resource\Report\Order\CreatedatFactory $createDatFactory * @param \Magento\Sales\Model\Resource\Report\Order\UpdatedatFactory $updateDatFactory */ public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Framework\Logger $logger, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Reports\Model\FlagFactory $reportsFlagFactory, \Magento\Framework\Stdlib\DateTime $dateTime, \Magento\Framework\Stdlib\DateTime\Timezone\Validator $timezoneValidator, \Magento\Sales\Model\Resource\Report\Order\CreatedatFactory $createDatFactory, \Magento\Sales\Model\Resource\Report\Order\UpdatedatFactory $updateDatFactory) { parent::__construct($resource, $logger, $localeDate, $reportsFlagFactory, $dateTime, $timezoneValidator); $this->_createDatFactory = $createDatFactory; $this->_updateDatFactory = $updateDatFactory; }
/** * @param array $jsonData * @return $this */ public function fillFromJsonData(array $jsonData) { $this->step = $jsonData['step']; $this->steps = $jsonData['steps']; return parent::fillFromJsonData($jsonData); }