Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
purge.php
1
<?php
2
3
namespace
Bitrix\Translate\Controller\Index
;
4
5
use
Bitrix\Main
;
6
use
Bitrix\Translate
;
7
11
class
Purge
extends
Translate\Controller\Action
12
{
20
final
public
function
run
($path =
''
)
21
{
22
if
(!empty($path))
23
{
24
$filter =
new
Translate\Filter
([
25
'path'
=> $path
26
]);
27
(
new
Translate\Index\PathLangCollection
())->purge($filter);
28
(
new
Translate\Index\PathIndexCollection
())->purge($filter);
29
}
30
else
31
{
32
(
new
Translate\Index\PathLangCollection
())->purge();
33
(
new
Translate\Index\PathIndexCollection
())->purge();
34
}
35
36
return
[
'STATUS'
=> Translate\Controller\STATUS_COMPLETED];
37
}
38
}
Bitrix\Translate\Controller\Action
Definition
action.php:11
Bitrix\Translate\Controller\Index\Purge
Definition
purge.php:12
Bitrix\Translate\Controller\Index\Purge\run
run($path='')
Definition
purge.php:20
Bitrix\Translate\Filter
Definition
filter.php:20
Bitrix\Translate\Index\PathIndexCollection
Definition
pathindexcollection.php:14
Bitrix\Translate\Index\PathLangCollection
Definition
pathlangcollection.php:16
Bitrix\Main
Bitrix\Translate\Controller\Index
Definition
collectfileindex.php:2
Bitrix\Translate
modules
translate
lib
controller
index
purge.php
Создано системой
1.10.0