Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-reports
Controller
Adminhtml
Report
Customer
ExportTotalsExcel.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Reports\Controller\Adminhtml\Report\Customer
;
8
9
use
Magento\Backend\Block\Widget\Grid\ExportInterface
;
10
use
Magento\Framework\App\ResponseInterface
;
11
use
Magento\Framework\App\Filesystem\DirectoryList
;
12
13
class
ExportTotalsExcel
extends
\Magento\Reports\Controller\Adminhtml\Report\Customer
14
{
20
public
function
execute
()
21
{
22
$this->_view->loadLayout();
23
$fileName
=
'customer_totals.xml'
;
25
$exportBlock = $this->_view->getLayout()->getChildBlock(
'adminhtml.report.grid'
,
'grid.export'
);
26
return
$this->_fileFactory->create(
27
$fileName
,
28
$exportBlock->getExcelFile(
$fileName
),
29
DirectoryList::VAR_DIR
30
);
31
}
32
}
Magento\Framework\App\Filesystem\DirectoryList\VAR_DIR
const VAR_DIR
Definition:
DirectoryList.php:58
Magento\Backend\Block\Widget\Grid\ExportInterface
Definition:
ExportInterface.php:15
Magento\Reports\Controller\Adminhtml\Report\Customer
Definition:
Accounts.php:7
Magento\Framework\App\ActionInterface\execute
execute()
$fileName
$fileName
Definition:
translate.phtml:15
Magento\Reports\Controller\Adminhtml\Report\Customer
Definition:
Customer.php:19
Magento\Framework\App\Filesystem\DirectoryList
Definition:
DirectoryList.php:13
Magento\Reports\Controller\Adminhtml\Report\Customer\ExportTotalsExcel
Definition:
ExportTotalsExcel.php:13
Magento\Framework\App\ResponseInterface
Definition:
ResponseInterface.php:14