Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
iblockbuilder.php
1
<?php
2
namespace
Bitrix\Iblock\Url\AdminPage
;
3
4
use
Bitrix\Main
;
5
6
class
IblockBuilder
extends
BaseBuilder
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
}
Bitrix\Iblock\Url\AdminPage\BaseBuilder
Definition
basebuilder.php:8
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_ELEMENT_DETAIL
const PAGE_ELEMENT_DETAIL
Definition
basebuilder.php:16
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_ELEMENT_COPY
const PAGE_ELEMENT_COPY
Definition
basebuilder.php:17
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_SECTION_DETAIL
const PAGE_SECTION_DETAIL
Definition
basebuilder.php:22
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_ELEMENT_SAVE
const PAGE_ELEMENT_SAVE
Definition
basebuilder.php:18
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_SECTION_LIST
const PAGE_SECTION_LIST
Definition
basebuilder.php:21
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_SECTION_COPY
const PAGE_SECTION_COPY
Definition
basebuilder.php:23
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_ELEMENT_LIST
const PAGE_ELEMENT_LIST
Definition
basebuilder.php:15
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_SECTION_SEARCH
const PAGE_SECTION_SEARCH
Definition
basebuilder.php:25
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_SECTION_SAVE
const PAGE_SECTION_SAVE
Definition
basebuilder.php:24
Bitrix\Iblock\Url\AdminPage\BaseBuilder\PAGE_ELEMENT_SEARCH
const PAGE_ELEMENT_SEARCH
Definition
basebuilder.php:19
Bitrix\Iblock\Url\AdminPage\IblockBuilder
Definition
iblockbuilder.php:7
Bitrix\Iblock\Url\AdminPage\IblockBuilder\TYPE_ID
const TYPE_ID
Definition
iblockbuilder.php:8
Bitrix\Iblock\Url\AdminPage\IblockBuilder\PATH_PREFIX
const PATH_PREFIX
Definition
iblockbuilder.php:12
Bitrix\Iblock\Url\AdminPage\IblockBuilder\TYPE_WEIGHT
const TYPE_WEIGHT
Definition
iblockbuilder.php:10
Bitrix\Iblock\Url\AdminPage\IblockBuilder\initUrlTemplates
initUrlTemplates()
Definition
iblockbuilder.php:19
Bitrix\Iblock\Url\AdminPage
Definition
basebuilder.php:2
Bitrix\Main
modules
iblock
lib
url
adminpage
iblockbuilder.php
Создано системой
1.10.0