Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
UserName.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Message\Param
;
4
5
use
Bitrix\Im\V2\Message\Param
;
6
7
class
UserName
extends
Param
8
{
12
public
function
getValue
(): string
13
{
14
if
(!empty($this->value))
15
{
16
return \htmlspecialcharsbx($this->value);
17
}
18
19
return
''
;
20
}
21
26
public
function
saveValueFilter
(
$value
)
27
{
28
if
(!empty(
$value
))
29
{
30
$value
= \Bitrix\Im\Text::encodeEmoji(
$value
);
31
}
32
33
return
$value
;
34
}
35
40
public
function
loadValueFilter
(
$value
)
41
{
42
if
(!empty(
$value
))
43
{
44
$value
= \Bitrix\Im\Text::decodeEmoji(
$value
);
45
}
46
47
return
$value
;
48
}
49
}
Bitrix\Im\V2\Message\Param\UserName
Definition
UserName.php:8
Bitrix\Im\V2\Message\Param\UserName\loadValueFilter
loadValueFilter($value)
Definition
UserName.php:40
Bitrix\Im\V2\Message\Param\UserName\getValue
getValue()
Definition
UserName.php:12
Bitrix\Im\V2\Message\Param\UserName\saveValueFilter
saveValueFilter($value)
Definition
UserName.php:26
Bitrix\Im\V2\Message\Param
Definition
Param.php:19
Bitrix\Im\V2\Message\Param\$value
$value
Definition
Param.php:45
Bitrix\Im\V2\Message\Param
Definition
Attach.php:3
modules
im
lib
V2
Message
Param
UserName.php
Создано системой
1.10.0