1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
urlrewriter.php
См. документацию.
1<?php
8
10
15{
16 public static function GetList($arFilter = array(), $arOrder = array())
17 {
18 global $APPLICATION;
19
20 if (isset($arFilter["SITE_ID"]))
21 {
22 $siteId = $arFilter["SITE_ID"];
23 unset($arFilter["SITE_ID"]);
24 }
25 else
26 {
28 }
29
30 if (array_key_exists("QUERY", $arFilter) && $arFilter["QUERY"] === false)
31 {
32 $arFilter["QUERY"] = $APPLICATION->GetCurPage();
33 }
34
35 return UrlRewriter::getList($siteId, $arFilter, $arOrder);
36 }
37
38 public static function Add($arFields)
39 {
40 $siteId = $arFields["SITE_ID"] ?? SITE_ID;
41
42 UrlRewriter::add($siteId, $arFields);
43 }
44
45 public static function Update($arFilter, $arFields)
46 {
47 global $APPLICATION;
48
49 if (isset($arFilter["SITE_ID"]))
50 {
51 $siteId = $arFilter["SITE_ID"];
52 unset($arFilter["SITE_ID"]);
53 }
54 else
55 {
57 }
58
59 if (array_key_exists("QUERY", $arFilter) && $arFilter["QUERY"] === false)
60 {
61 $arFilter["QUERY"] = $APPLICATION->GetCurPage();
62 }
63
64 UrlRewriter::update($siteId, $arFilter, $arFields);
65 }
66
67 public static function Delete($arFilter)
68 {
69 global $APPLICATION;
70
71 if (isset($arFilter["SITE_ID"]))
72 {
73 $siteId = $arFilter["SITE_ID"];
74 unset($arFilter["SITE_ID"]);
75 }
76 else
77 {
79 }
80
81 if (array_key_exists("QUERY", $arFilter) && $arFilter["QUERY"] === false)
82 {
83 $arFilter["QUERY"] = $APPLICATION->GetCurPage();
84 }
85
86 if(isset($arFilter["ID"]) && $arFilter["ID"] == "NULL")
87 {
88 unset($arFilter["ID"]);
89 $arFilter["!ID"] = '';
90 }
91
92 UrlRewriter::delete($siteId, $arFilter);
93 }
94
95 public static function ReIndexAll($max_execution_time = 0, $NS = array())
96 {
97 return UrlRewriter::reindexAll($max_execution_time, $NS);
98 }
99
100 public static function ReindexFile($path, $SEARCH_SESS_ID="", $max_file_size = 0)
101 {
102 CMain::InitPathVars($site, $path);
103
104 if($site === false)
105 {
106 $site = SITE_ID;
107 }
108
109 $DOC_ROOT = CSite::GetSiteDocRoot($site);
110
111 return UrlRewriter::reindexFile($site, $DOC_ROOT, $path, $max_file_size);
112 }
113
114 public static function CheckPath($path)
115 {
116 return UrlRewriter::checkPath($path);
117 }
118}
$path
Определения access_edit.php:21
global $APPLICATION
Определения include.php:80
Определения urlrewriter.php:15
static CheckPath($path)
Определения urlrewriter.php:114
static Add($arFields)
Определения urlrewriter.php:38
static ReindexFile($path, $SEARCH_SESS_ID="", $max_file_size=0)
Определения urlrewriter.php:100
static GetList($arFilter=array(), $arOrder=array())
Определения urlrewriter.php:16
static Delete($arFilter)
Определения urlrewriter.php:67
static ReIndexAll($max_execution_time=0, $NS=array())
Определения urlrewriter.php:95
static Update($arFilter, $arFields)
Определения urlrewriter.php:45
$arFields
Определения dblapprove.php:5
$DOC_ROOT
Определения file_edit.php:66
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$max_execution_time
Определения csv_new_run.php:85
$siteId
Определения ajax.php:8
if(!defined('NOT_CHECK_PERMISSIONS')) $NS
Определения backup.php:24
const SITE_ID
Определения sonet_set_content_view.php:12
$arFilter
Определения user_search.php:106
$site
Определения yandex_run.php:614