Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/iblock/lib/url/adminpage/ |
Upload File : |
<?php namespace Bitrix\Iblock\Url\AdminPage; use Bitrix\Main; class IblockBuilder extends BaseBuilder { public const TYPE_ID = 'IBLOCK'; protected const TYPE_WEIGHT = 100; protected const PATH_PREFIX = '/bitrix/admin/'; public function use(): bool { return Main\Context::getCurrent()->getRequest()->isAdminSection(); } protected function initUrlTemplates(): void { $this->urlTemplates[self::PAGE_SECTION_LIST] = '#PATH_PREFIX#' .($this->iblockListMixed ? 'iblock_list_admin.php' : 'iblock_section_admin.php') .'?#BASE_PARAMS#' .'#PARENT_FILTER#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_SECTION_DETAIL] = '#PATH_PREFIX#' .'iblock_section_edit.php' .'?#BASE_PARAMS#' .'#ENTITY_FILTER#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_SECTION_COPY] = $this->urlTemplates[self::PAGE_SECTION_DETAIL] .$this->getCopyAction(); $this->urlTemplates[self::PAGE_SECTION_SAVE] = '#PATH_PREFIX#' .'iblock_section_edit.php' .'?#BASE_PARAMS#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_SECTION_SEARCH] = '/bitrix/tools/iblock/section_search.php' .'?#LANGUAGE#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_ELEMENT_LIST] = '#PATH_PREFIX#' .($this->iblockListMixed ? 'iblock_list_admin.php' : 'iblock_element_admin.php') .'?#BASE_PARAMS#' .'#PARENT_FILTER#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_ELEMENT_DETAIL] = '#PATH_PREFIX#' .'iblock_element_edit.php' .'?#BASE_PARAMS#' .'#ENTITY_FILTER#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_ELEMENT_COPY] = $this->urlTemplates[self::PAGE_ELEMENT_DETAIL] .$this->getCopyAction(); $this->urlTemplates[self::PAGE_ELEMENT_SAVE] = '#PATH_PREFIX#' .'iblock_element_edit.php' .'?#BASE_PARAMS#' .'#ADDITIONAL_PARAMETERS#'; $this->urlTemplates[self::PAGE_ELEMENT_SEARCH] = '/bitrix/tools/iblock/element_search.php' .'?#LANGUAGE#' .'#ADDITIONAL_PARAMETERS#'; } }