1 | <?php |
||
7 | class OnBeforeIBlockDelete extends BaseHandler implements HandlerInterface |
||
8 | { |
||
9 | /** |
||
10 | * Constructor. |
||
11 | * |
||
12 | * @param array $params |
||
13 | */ |
||
14 | public function __construct($params) |
||
18 | |||
19 | /** |
||
20 | * Get migration name. |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | public function getName() |
||
28 | |||
29 | /** |
||
30 | * Get template name. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getTemplate() |
||
38 | |||
39 | /** |
||
40 | * Get array of placeholders to replace. |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getReplace() |
||
50 | |||
51 | /** |
||
52 | * Get iblock by id without checking permissions. |
||
53 | * |
||
54 | * @param $id |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | protected function getIBlockById($id) |
||
67 | } |
||
68 |