1 | <?php |
||
13 | class Exporter implements ActionInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $config = []; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $session = []; |
||
24 | |||
25 | /** |
||
26 | * @var \CIBlockCMLExport |
||
27 | */ |
||
28 | protected $export; |
||
29 | |||
30 | /** |
||
31 | * Prefix temp file |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $prefix = '.tmp'; |
||
36 | |||
37 | public function __construct() |
||
50 | |||
51 | /** |
||
52 | * Set id information block |
||
53 | * |
||
54 | * @param int $id |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setId($id) |
||
62 | |||
63 | /** |
||
64 | * Set file path to export |
||
65 | * |
||
66 | * @param string $path |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setPath($path) |
||
74 | |||
75 | /** |
||
76 | * Set settings export sections |
||
77 | * |
||
78 | * @param string $sections |
||
79 | * @return $this |
||
80 | */ |
||
81 | public function setSections($sections) |
||
86 | |||
87 | /** |
||
88 | * Set settings export elements |
||
89 | * |
||
90 | * @param string $elements |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function setElements($elements) |
||
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | */ |
||
102 | public function execute() |
||
115 | |||
116 | /** |
||
117 | * Direct export |
||
118 | * |
||
119 | * @return $this |
||
120 | * @throws ExportException |
||
121 | */ |
||
122 | protected function export() |
||
177 | } |