Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
filedecodefilter.php
1
<?php
2
3
namespace
Bitrix\Main\Web
;
4
5
use
Bitrix\Main\Application
;
6
use
Bitrix\Main\Text\Encoding
;
7
use
Bitrix\Main\Type
;
8
9
class
FileDecodeFilter
implements
Type\IRequestFilter
10
{
15
public
function
filter
(array $values)
16
{
17
if
(
Application::getInstance
()->isUtfMode())
18
{
19
return
null
;
20
}
21
22
if
(empty($values[
'files'
]) || !is_array($values[
'files'
]))
23
{
24
return
null
;
25
}
26
27
return
[
28
'files'
=> Encoding::convertEncoding($values[
'files'
],
'UTF-8'
, SITE_CHARSET),
29
];
30
}
31
}
Bitrix\Main\Application
Definition
application.php:28
Bitrix\Main\Application\getInstance
static getInstance()
Definition
application.php:95
Bitrix\Main\Text\Encoding
Definition
encoding.php:8
Bitrix\Main\Web\FileDecodeFilter
Definition
filedecodefilter.php:10
Bitrix\Main\Web\FileDecodeFilter\filter
filter(array $values)
Definition
filedecodefilter.php:15
Bitrix\Main\Type\IRequestFilter
Definition
irequestfilter.php:7
Bitrix\Main\Type
Definition
collection.php:2
Bitrix\Main\Web
Definition
cookie.php:3
modules
main
lib
web
filedecodefilter.php
Создано системой
1.10.0