1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CopyLinkActionMessage.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Socialnetwork\Collab\Integration\IM\Message;
6
7use Bitrix\Main\Loader;
8use Bitrix\Main\Localization\Loc;
9use Bitrix\SocialNetwork\Collab\Analytics\CollabAnalytics;
10
12{
13 use MessageTrait;
14
15 protected int $collabId;
16 protected int $senderId;
17
18 public function __construct(int $collabId, int $senderId)
19 {
20 $this->collabId = $collabId;
21 $this->senderId = $senderId;
22 }
23
24 public function send(array $recipientIds = [], array $parameters = []): int
25 {
26 if (!Loader::includeModule('im'))
27 {
28 return 0;
29 }
30
31 $message = (string)Loc::getMessage(
32 'SOCIALNETWORK_COLLAB_CHAT_COPY_LINK' . $this->getGenderSuffix($this->senderId),
33 [
34 '#SENDER_NAME#' => $this->getName($this->senderId, $this->senderId, $this->collabId),
35 ],
36 );
37
38 CollabAnalytics::getInstance()->onCopyLink($this->senderId, $this->collabId);
39
40 return $this->sendMessage($message, $this->senderId, $this->collabId);
41 }
42}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
sendMessage(string $message, int $senderId, int $groupId, ?string $componentId=null)
Определения MessageTrait.php:120
getName(int $senderId, int $recipientId, int $collabId)
Определения MessageTrait.php:49
$message
Определения payment.php:8