1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
pathtree.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Translate\Index\Internals;
4
5
use Bitrix\Main\ORM\Data\DataManager;
6
use Bitrix\Translate;
7
use Bitrix\Translate\Index;
8
34
35
class
PathTreeTable
extends
DataManager
36
{
37
use
Index\Internals\BulkOperation
;
38
44
public
static
function
getTableName
(): string
45
{
46
return
'b_translate_path_tree'
;
47
}
48
49
55
public
static
function
getMap
():
array
56
{
57
return
array
(
58
'ID'
=> [
59
'data_type'
=>
'integer'
,
60
'primary'
=>
true
,
61
'autocomplete'
=>
true
,
62
],
63
'PARENT_ID'
=> [
64
'data_type'
=>
'integer'
,
65
],
66
'PATH_ID'
=> [
67
'data_type'
=>
'integer'
,
68
],
69
'DEPTH_LEVEL'
=> [
70
'data_type'
=>
'integer'
,
71
'default_value'
=> 0,
72
],
73
'PATH'
=> [
74
'data_type'
=>
Index
\
Internals
\PathIndexTable::class,
75
'reference'
=> [
76
'=this.PATH_ID'
=>
'ref.ID'
,
77
],
78
'join_type'
=>
'INNER'
,
79
],
80
);
81
}
82
90
public
static
function
purge
(?
Translate
\
Filter
$filter
=
null
): void
91
{
92
$filterOut = static::processFilter(
$filter
);
93
static::bulkDelete($filterOut);
94
}
95
103
public
static
function
processFilter
(?
Translate
\
Filter
$filter
=
null
):
array
104
{
105
$filterOut = [];
106
107
if
(
$filter
!==
null
)
108
{
109
foreach
(
$filter
as
$key
=> $value)
110
{
111
if
(empty($value) && $value !==
'0'
)
112
{
113
continue
;
114
}
115
116
if
(
$key
===
'path'
)
117
{
118
$filterOut[
'=%PATH.PATH'
] = $value.
'%'
;
119
}
120
elseif
(
$key
===
'pathId'
)
121
{
122
$filterOut[
'=PATH_ID'
] = $value;
123
}
124
elseif
(
$key
===
'parentId'
)
125
{
126
$filterOut[
'=PARENT_ID'
] = $value;
127
}
128
else
129
{
130
if
(static::getEntity()->hasField(trim(
$key
,
'<>!=@~%*'
)))
131
{
132
$filterOut[
$key
] = $value;
133
}
134
}
135
}
136
}
137
138
return
$filterOut;
139
}
140
}
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Translate\Index\Internals\PathTreeTable
Определения
pathtree.php:36
Bitrix\Translate\Index\Internals\PathTreeTable\getMap
static getMap()
Определения
pathtree.php:55
Bitrix\Translate\Index\Internals\PathTreeTable\processFilter
static processFilter(?Translate\Filter $filter=null)
Определения
pathtree.php:103
Bitrix\Translate\Index\Internals\PathTreeTable\purge
static purge(?Translate\Filter $filter=null)
Определения
pathtree.php:90
Bitrix\Translate\Index\Internals\PathTreeTable\getTableName
static getTableName()
Определения
pathtree.php:44
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$filter
$filter
Определения
iblock_catalog_list.php:54
Bitrix\Main\Filter
Bitrix\Translate\Index\Internals
Определения
bulkoperation.php:3
Bitrix\Translate\Index\Internals\BulkOperation
trait BulkOperation
Определения
bulkoperation.php:9
Bitrix\Translate\Index
Определения
aggregate.php:3
Bitrix\Translate
Определения
autoload.php:3
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$key
if(empty($signedUserToken)) $key
Определения
quickway.php:257
bitrix
modules
translate
lib
index
internals
pathtree.php
Создано системой
1.14.0