File tree 2 files changed +20
-2
lines changed
app/code/Magento/Ui/Model/Export
2 files changed +20
-2
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 ;
12
+ use Magento \Framework \Filesystem \Directory \WriteInterface ;
11
13
use Magento \Ui \Component \MassAction \Filter ;
12
14
13
15
/**
16
18
class ConvertToCsv
17
19
{
18
20
/**
19
- * @var DirectoryList
21
+ * @var WriteInterface
20
22
*/
21
23
protected $ directory ;
22
24
@@ -30,11 +32,17 @@ class ConvertToCsv
30
32
*/
31
33
protected $ pageSize = null ;
32
34
35
+ /**
36
+ * @var Filter
37
+ */
38
+ protected $ filter ;
39
+
33
40
/**
34
41
* @param Filesystem $filesystem
35
42
* @param Filter $filter
36
43
* @param MetadataProvider $metadataProvider
37
44
* @param int $pageSize
45
+ * @throws FileSystemException
38
46
*/
39
47
public function __construct (
40
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 ;
16
+ use Magento \Framework \Filesystem \Directory \WriteInterface ;
15
17
use Magento \Ui \Component \MassAction \Filter ;
16
18
17
19
/**
20
22
class ConvertToXml
21
23
{
22
24
/**
23
- * @var DirectoryList
25
+ * @var WriteInterface
24
26
*/
25
27
protected $ directory ;
26
28
@@ -49,12 +51,18 @@ class ConvertToXml
49
51
*/
50
52
protected $ fields ;
51
53
54
+ /**
55
+ * @var Filter
56
+ */
57
+ protected $ filter ;
58
+
52
59
/**
53
60
* @param Filesystem $filesystem
54
61
* @param Filter $filter
55
62
* @param MetadataProvider $metadataProvider
56
63
* @param ExcelFactory $excelFactory
57
64
* @param SearchResultIteratorFactory $iteratorFactory
65
+ * @throws FileSystemException
58
66
*/
59
67
public function __construct (
60
68
Filesystem $ filesystem ,
@@ -87,6 +95,7 @@ protected function getOptions()
87
95
* Returns DB fields list
88
96
*
89
97
* @return array
98
+ * @throws LocalizedException
90
99
*/
91
100
protected function getFields ()
92
101
{
@@ -102,6 +111,7 @@ protected function getFields()
102
111
*
103
112
* @param DocumentInterface $document
104
113
* @return array
114
+ * @throws LocalizedException
105
115
*/
106
116
public function getRowData (DocumentInterface $ document )
107
117
{
You can’t perform that action at this time.
0 commit comments