Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
AttachService.php
1<?php
2
4
8
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}
getParams(bool $disallowLazyLoad=false)
Definition Message.php:313