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