Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
iblockbuilder.php
1<?php
3
5
7{
8 public const TYPE_ID = 'IBLOCK';
9
10 protected const TYPE_WEIGHT = 100;
11
12 protected const PATH_PREFIX = '/bitrix/admin/';
13
14 public function use(): bool
15 {
16 return Main\Context::getCurrent()->getRequest()->isAdminSection();
17 }
18
19 protected function initUrlTemplates(): void
20 {
21 $this->urlTemplates[self::PAGE_SECTION_LIST] = '#PATH_PREFIX#'
22 .($this->iblockListMixed ? 'iblock_list_admin.php' : 'iblock_section_admin.php')
23 .'?#BASE_PARAMS#'
24 .'#PARENT_FILTER#'
25 .'#ADDITIONAL_PARAMETERS#';
26 $this->urlTemplates[self::PAGE_SECTION_DETAIL] = '#PATH_PREFIX#'
27 .'iblock_section_edit.php'
28 .'?#BASE_PARAMS#'
29 .'#ENTITY_FILTER#'
30 .'#ADDITIONAL_PARAMETERS#';
31 $this->urlTemplates[self::PAGE_SECTION_COPY] = $this->urlTemplates[self::PAGE_SECTION_DETAIL]
32 .$this->getCopyAction();
33 $this->urlTemplates[self::PAGE_SECTION_SAVE] = '#PATH_PREFIX#'
34 .'iblock_section_edit.php'
35 .'?#BASE_PARAMS#'
36 .'#ADDITIONAL_PARAMETERS#';
37 $this->urlTemplates[self::PAGE_SECTION_SEARCH] = '/bitrix/tools/iblock/section_search.php'
38 .'?#LANGUAGE#'
39 .'#ADDITIONAL_PARAMETERS#';
40
41 $this->urlTemplates[self::PAGE_ELEMENT_LIST] = '#PATH_PREFIX#'
42 .($this->iblockListMixed ? 'iblock_list_admin.php' : 'iblock_element_admin.php')
43 .'?#BASE_PARAMS#'
44 .'#PARENT_FILTER#'
45 .'#ADDITIONAL_PARAMETERS#';
46 $this->urlTemplates[self::PAGE_ELEMENT_DETAIL] = '#PATH_PREFIX#'
47 .'iblock_element_edit.php'
48 .'?#BASE_PARAMS#'
49 .'#ENTITY_FILTER#'
50 .'#ADDITIONAL_PARAMETERS#';
51 $this->urlTemplates[self::PAGE_ELEMENT_COPY] = $this->urlTemplates[self::PAGE_ELEMENT_DETAIL]
52 .$this->getCopyAction();
53 $this->urlTemplates[self::PAGE_ELEMENT_SAVE] = '#PATH_PREFIX#'
54 .'iblock_element_edit.php'
55 .'?#BASE_PARAMS#'
56 .'#ADDITIONAL_PARAMETERS#';
57 $this->urlTemplates[self::PAGE_ELEMENT_SEARCH] = '/bitrix/tools/iblock/element_search.php'
58 .'?#LANGUAGE#'
59 .'#ADDITIONAL_PARAMETERS#';
60 }
61}