Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
AttachService.php
1
<?php
2
3
namespace
Bitrix\Im\V2\Message\Attach
;
4
5
use
Bitrix\Im\V2\Message
;
6
use
Bitrix\Im\V2\Message\Params
;
7
use
Bitrix\Main\Engine\CurrentUser
;
8
9
class
AttachService
10
{
11
public
function
deleteRichUrl
(
Message
$message): void
12
{
13
$params = $message->
getParams
();
14
15
$urlIds = $params->get(
'URL_ID'
)->getValue();
16
if
(empty($urlIds))
17
{
18
return
;
19
}
20
21
$params->get(
'URL_ID'
)->unsetValue();
22
$params->get(
'URL_ONLY'
)->unsetValue();
23
$params->save();
24
25
(
new
Message\Param\PushService
())->sendPull($message, [
'URL_ID'
,
'ATTACH'
,
'URL_ONLY'
]);
26
}
27
}
Bitrix\Im\V2\Message\Attach\AttachService
Definition
AttachService.php:10
Bitrix\Im\V2\Message\Attach\AttachService\deleteRichUrl
deleteRichUrl(Message $message)
Definition
AttachService.php:11
Bitrix\Im\V2\Message\Param\PushService
Definition
PushService.php:11
Bitrix\Im\V2\Message\Params
Definition
Params.php:22
Bitrix\Im\V2\Message
Definition
Message.php:44
Bitrix\Im\V2\Message\getParams
getParams(bool $disallowLazyLoad=false)
Definition
Message.php:313
Bitrix\Main\Engine\CurrentUser
Definition
currentuser.php:8
Bitrix\Im\V2\Message\Attach
Definition
AttachService.php:3
Bitrix\Im\V2\Message
Definition
AdditionalMessagePopupItem.php:3
modules
im
lib
V2
Message
Attach
AttachService.php
Создано системой
1.10.0