Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Reports.php
Go to the documentation of this file.
1 <?php
7 
11 abstract class Reports extends \Magento\Backend\App\Action
12 {
18  const ADMIN_RESOURCE = 'Magento_Paypal::paypal_settlement_reports';
19 
25  protected $_coreRegistry;
26 
30  protected $_rowFactory;
31 
36 
40  protected $_logger;
41 
49  public function __construct(
50  \Magento\Backend\App\Action\Context $context,
51  \Magento\Framework\Registry $coreRegistry,
52  \Magento\Paypal\Model\Report\Settlement\RowFactory $rowFactory,
53  \Magento\Paypal\Model\Report\SettlementFactory $settlementFactory,
54  \Psr\Log\LoggerInterface $logger
55  ) {
56  $this->_coreRegistry = $coreRegistry;
57  $this->_rowFactory = $rowFactory;
58  $this->_settlementFactory = $settlementFactory;
59  $this->_logger = $logger;
60  parent::__construct($context);
61  }
62 
68  protected function _initAction()
69  {
70  $this->_view->loadLayout();
71  $this->_setActiveMenu(
72  'Magento_Paypal::report_salesroot_paypal_settlement_reports'
73  )->_addBreadcrumb(
74  __('Reports'),
75  __('Reports')
76  )->_addBreadcrumb(
77  __('Sales'),
78  __('Sales')
79  )->_addBreadcrumb(
80  __('PayPal Settlement Reports'),
81  __('PayPal Settlement Reports')
82  );
83  $this->_view->getPage()->getConfig()->getTitle()->prepend(__('PayPal Settlement Reports'));
84  return $this;
85  }
86 }
__()
Definition: __.php:13
$logger
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Paypal\Model\Report\Settlement\RowFactory $rowFactory, \Magento\Paypal\Model\Report\SettlementFactory $settlementFactory, \Psr\Log\LoggerInterface $logger)
Definition: Reports.php:49