Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
postdecodefilter.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
PostDecodeFilter
implements
Type\IRequestFilter
10
{
15
public
function
filter
(array $values)
16
{
17
if
(
Application::getInstance
()->isUtfMode())
18
{
19
return
null
;
20
}
21
if
(empty($values[
'post'
]) || !is_array($values[
'post'
]))
22
{
23
return
null
;
24
}
25
26
return
array(
27
'post'
=> Encoding::convertEncoding($values[
'post'
],
'UTF-8'
, SITE_CHARSET),
28
);
29
}
30
}
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\PostDecodeFilter
Definition
postdecodefilter.php:10
Bitrix\Main\Web\PostDecodeFilter\filter
filter(array $values)
Definition
postdecodefilter.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
postdecodefilter.php
Создано системой
1.10.0