1 | <?php |
||
13 | class Import implements ActionInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | protected $config = []; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $session = []; |
||
24 | |||
25 | /** |
||
26 | * @var \CIBlockXMLFile |
||
27 | */ |
||
28 | protected $xml; |
||
29 | |||
30 | /** |
||
31 | * @var \CIBlockCMLImport |
||
32 | */ |
||
33 | protected $import; |
||
34 | |||
35 | public function __construct() |
||
52 | |||
53 | /** |
||
54 | * @param string $type |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setType($type) |
||
62 | |||
63 | /** |
||
64 | * @param string $path |
||
65 | * @return $this |
||
66 | */ |
||
67 | public function setPath($path) |
||
72 | |||
73 | /** |
||
74 | * @param array $lids |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setSites($lids) |
||
82 | |||
83 | /** |
||
84 | * @param string $action |
||
85 | * @return $this |
||
86 | */ |
||
87 | public function setActionSection($action) |
||
92 | |||
93 | /** |
||
94 | * @param string $action |
||
95 | * @return $this |
||
96 | */ |
||
97 | public function setActionElement($action) |
||
102 | |||
103 | /** |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function execute() |
||
121 | |||
122 | /** |
||
123 | * @throws ImportException |
||
124 | */ |
||
125 | protected function read() |
||
141 | |||
142 | /** |
||
143 | * |
||
144 | */ |
||
145 | protected function import() |
||
166 | } |