File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
app/code/Magento/Ui/Model/Export Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Ui \Model \Export ;
7
7
8
8
use Magento \Framework \App \Filesystem \DirectoryList ;
9
+ use Magento \Framework \Exception \FileSystemException ;
9
10
use Magento \Framework \Exception \LocalizedException ;
10
11
use Magento \Framework \Filesystem ;
11
12
use Magento \Framework \Filesystem \Directory \WriteInterface ;
@@ -31,11 +32,17 @@ class ConvertToCsv
31
32
*/
32
33
protected $ pageSize = null ;
33
34
35
+ /**
36
+ * @var Filter
37
+ */
38
+ protected $ filter ;
39
+
34
40
/**
35
41
* @param Filesystem $filesystem
36
42
* @param Filter $filter
37
43
* @param MetadataProvider $metadataProvider
38
44
* @param int $pageSize
45
+ * @throws FileSystemException
39
46
*/
40
47
public function __construct (
41
48
Filesystem $ filesystem ,
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \App \Filesystem \DirectoryList ;
11
11
use Magento \Framework \Convert \Excel ;
12
12
use Magento \Framework \Convert \ExcelFactory ;
13
+ use Magento \Framework \Exception \FileSystemException ;
13
14
use Magento \Framework \Exception \LocalizedException ;
14
15
use Magento \Framework \Filesystem ;
15
16
use Magento \Framework \Filesystem \Directory \WriteInterface ;
@@ -50,12 +51,18 @@ class ConvertToXml
50
51
*/
51
52
protected $ fields ;
52
53
54
+ /**
55
+ * @var Filter
56
+ */
57
+ protected $ filter ;
58
+
53
59
/**
54
60
* @param Filesystem $filesystem
55
61
* @param Filter $filter
56
62
* @param MetadataProvider $metadataProvider
57
63
* @param ExcelFactory $excelFactory
58
64
* @param SearchResultIteratorFactory $iteratorFactory
65
+ * @throws FileSystemException
59
66
*/
60
67
public function __construct (
61
68
Filesystem $ filesystem ,
@@ -88,6 +95,7 @@ protected function getOptions()
88
95
* Returns DB fields list
89
96
*
90
97
* @return array
98
+ * @throws LocalizedException
91
99
*/
92
100
protected function getFields ()
93
101
{
@@ -103,6 +111,7 @@ protected function getFields()
103
111
*
104
112
* @param DocumentInterface $document
105
113
* @return array
114
+ * @throws LocalizedException
106
115
*/
107
116
public function getRowData (DocumentInterface $ document )
108
117
{
You can’t perform that action at this time.
0 commit comments