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
Product
ExportDownloadsCsv.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Reports\Controller\Adminhtml\Report\Product
;
8
9
use
Magento\Framework\App\ResponseInterface
;
10
11
class
ExportDownloadsCsv
extends
\Magento\Reports\Controller\Adminhtml\Report\Product
12
{
18
const
ADMIN_RESOURCE
=
'Magento_Reports::report_products'
;
19
25
public
function
execute
()
26
{
27
$fileName
=
'products_downloads.csv'
;
28
$content
= $this->_view->getLayout()->createBlock(
29
\
Magento
\Reports\Block\Adminhtml\
Product
\
Downloads
\Grid::class
30
)->setSaveParametersInSession(
31
true
32
)->getCsv();
33
34
return
$this->_fileFactory->create(
$fileName
,
$content
);
35
}
36
}
Magento\Reports\Controller\Adminhtml\Report\Product\ExportDownloadsCsv\ADMIN_RESOURCE
const ADMIN_RESOURCE
Definition:
ExportDownloadsCsv.php:18
Magento\Reports\Controller\Adminhtml\Report\Product
Definition:
ViewedTest.php:7
Magento\Reports\Controller\Adminhtml\Report\Product\ExportDownloadsCsv\execute
execute()
Definition:
ExportDownloadsCsv.php:25
Magento\Reports\Controller\Adminhtml\Report\Product
Definition:
Product.php:18
$fileName
$fileName
Definition:
translate.phtml:15
Magento\Reports\Controller\Adminhtml\Report\Product\ExportDownloadsCsv
Definition:
ExportDownloadsCsv.php:11
Magento
$content
$content
Definition:
downloadable_product_with_files_and_sample_url.php:93
Magento\Reports\Controller\Adminhtml\Report\Product\Downloads
Definition:
Downloads.php:11
Magento\Framework\App\ResponseInterface
Definition:
ResponseInterface.php:14