1 | <?php |
||
12 | class Import implements ActionInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $config = []; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | private $session = []; |
||
23 | |||
24 | /** |
||
25 | * @var \CIBlockXMLFile |
||
26 | */ |
||
27 | protected $xml; |
||
28 | |||
29 | /** |
||
30 | * @var \CIBlockCMLImport |
||
31 | */ |
||
32 | protected $import; |
||
33 | |||
34 | public function __construct() |
||
51 | |||
52 | /** |
||
53 | * @param string $type |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function setType($type) |
||
61 | |||
62 | /** |
||
63 | * @param string $path |
||
64 | * @return $this |
||
65 | */ |
||
66 | public function setPath($path) |
||
71 | |||
72 | /** |
||
73 | * @param array $lids |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setSites($lids) |
||
81 | |||
82 | /** |
||
83 | * @param string $action |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setActionSection($action) |
||
91 | |||
92 | /** |
||
93 | * @param string $action |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setActionElement($action) |
||
101 | |||
102 | /** |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function execute() |
||
117 | |||
118 | /** |
||
119 | * @throws ImportException |
||
120 | */ |
||
121 | protected function read() |
||
137 | |||
138 | /** |
||
139 | * |
||
140 | */ |
||
141 | protected function import() |
||
155 | } |