Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
pathlang.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
33
class
PathLangTable
extends
DataManager
34
{
35
use Index\Internals\BulkOperation;
36
42
public
static
function
getTableName
(): string
43
{
44
return
'b_translate_path_lang'
;
45
}
46
52
public
static
function
getMap
(): array
53
{
54
return
[
55
'ID'
=> [
56
'data_type'
=>
'integer'
,
57
'primary'
=>
true
,
58
'autocomplete'
=>
true
,
59
],
60
'PATH'
=> [
61
'data_type'
=>
'string'
,
62
],
63
];
64
}
65
73
public
static
function
purge
(?Translate\
Filter
$filter =
null
): void
74
{
75
$relPath = isset($filter, $filter->path) ? $filter->path :
''
;
76
77
if
(!empty($relPath))
78
{
79
$relPath = rtrim($relPath,
'/'
);
80
81
static::bulkDelete([
'=%PATH'
=> $relPath .
'%'
]);
82
}
83
else
84
{
85
static::bulkDelete();
86
}
87
}
88
}
Bitrix\Main\ORM\Data\DataManager
Definition
datamanager.php:33
Bitrix\Translate\Filter
Definition
filter.php:20
Bitrix\Translate\Index\Internals\PathLangTable
Definition
pathlang.php:34
Bitrix\Translate\Index\Internals\PathLangTable\getMap
static getMap()
Definition
pathlang.php:52
Bitrix\Translate\Index\Internals\PathLangTable\purge
static purge(?Translate\Filter $filter=null)
Definition
pathlang.php:73
Bitrix\Translate\Index\Internals\PathLangTable\getTableName
static getTableName()
Definition
pathlang.php:42
Bitrix\Translate\Index\Internals
Definition
bulkoperation.php:3
Bitrix\Translate\Index
Definition
aggregate.php:3
Bitrix\Translate
modules
translate
lib
index
internals
pathlang.php
Создано системой
1.10.0