1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
fileindex.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
37
38
class
FileIndexTable
extends
DataManager
39
{
40
use
Index\Internals\BulkOperation
;
41
47
public
static
function
getTableName
(): string
48
{
49
return
'b_translate_file'
;
50
}
51
57
public
static
function
getObjectClass
(): string
58
{
59
return
Index\FileIndex::class;
60
}
61
67
public
static
function
getCollectionClass
(): string
68
{
69
return
Index\FileIndexCollection::class;
70
}
71
77
public
static
function
getMap
():
array
78
{
79
return
[
80
'ID'
=> [
81
'data_type'
=>
'integer'
,
82
'primary'
=>
true
,
83
'autocomplete'
=>
true
,
84
],
85
'PATH_ID'
=> [
86
'data_type'
=>
'integer'
,
87
],
88
'LANG_ID'
=> [
89
'data_type'
=>
'string'
,
90
],
91
'FULL_PATH'
=> [
92
'data_type'
=>
'string'
,
93
],
94
'PHRASE_COUNT'
=> [
95
'data_type'
=>
'integer'
,
96
],
97
'INDEXED'
=> [
98
'data_type'
=>
'boolean'
,
99
'values'
=> [
'N'
,
'Y'
],
100
'default_value'
=>
'N'
,
101
],
102
'INDEXED_TIME'
=> [
103
'data_type'
=>
'datetime'
,
104
],
105
'PATH'
=> [
106
'data_type'
=> Index\Internals\PathIndexTable::class,
107
'reference'
=> [
108
'=this.PATH_ID'
=>
'ref.ID'
,
109
],
110
'join_type'
=>
'INNER'
,
111
],
112
];
113
}
114
115
123
public
static
function
purge
(?
Translate
\
Filter
$filter
=
null
): void
124
{
125
Index\Internals\PhraseIndexTable::purge
(
$filter
);
126
127
$filterOut = static::processFilter(
$filter
);
128
129
static::bulkDelete($filterOut);
130
}
131
139
public
static
function
processFilter
(?
Translate
\
Filter
$filter
=
null
):
array
140
{
141
$filterOut = [];
142
143
if
(
$filter
!==
null
)
144
{
145
foreach
(
$filter
as
$key
=> $value)
146
{
147
if
(empty($value) && $value !==
'0'
)
148
{
149
continue
;
150
}
151
152
if
(
$key
===
'path'
)
153
{
154
$filterOut[
'=%PATH.PATH'
] = $value.
'%'
;
155
}
156
elseif
(
$key
===
'pathId'
)
157
{
158
$filterOut[
'=PATH_ID'
] = $value;
159
}
160
elseif
(
$key
===
'langId'
)
161
{
162
$filterOut[
'=LANG_ID'
] = $value;
163
}
164
elseif
(
$key
===
'fileId'
)
165
{
166
$filterOut[
'=ID'
] = $value;
167
}
168
elseif
(
$key
===
'indexedTime'
)
169
{
170
$filterOut[
'<INDEXED_TIME'
] = $value;
171
}
172
else
173
{
174
if
(static::getEntity()->hasField(trim(
$key
,
'<>!=@~%*'
)))
175
{
176
$filterOut[
$key
] = $value;
177
}
178
}
179
}
180
}
181
182
return
$filterOut;
183
}
184
}
Bitrix\Main\ORM\Data\DataManager
Определения
datamanager.php:35
Bitrix\Translate\Index\Internals\FileIndexTable
Определения
fileindex.php:39
Bitrix\Translate\Index\Internals\FileIndexTable\getMap
static getMap()
Определения
fileindex.php:77
Bitrix\Translate\Index\Internals\FileIndexTable\processFilter
static processFilter(?Translate\Filter $filter=null)
Определения
fileindex.php:139
Bitrix\Translate\Index\Internals\FileIndexTable\purge
static purge(?Translate\Filter $filter=null)
Определения
fileindex.php:123
Bitrix\Translate\Index\Internals\FileIndexTable\getObjectClass
static getObjectClass()
Определения
fileindex.php:57
Bitrix\Translate\Index\Internals\FileIndexTable\getTableName
static getTableName()
Определения
fileindex.php:47
Bitrix\Translate\Index\Internals\FileIndexTable\getCollectionClass
static getCollectionClass()
Определения
fileindex.php:67
Bitrix\Translate\Index\Internals\PhraseIndexTable\purge
static purge(?Translate\Filter $filter=null)
Определения
phraseindex.php:138
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
trait BulkOperation
Определения
bulkoperation.php:9
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
fileindex.php
Создано системой
1.14.0