1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
CommentMentionService.php
См. документацию.
1<?php
2
4
8
10{
11 protected function getChat(Message $message): Chat
12 {
13 $chat = $message->getChat();
14
15 if ($chat instanceof Chat\CommentChat)
16 {
17 $chat = $chat->getParentChat();
18 }
19
20 return $chat;
21 }
22
23 protected function needToSendPull(): bool
24 {
25 return false;
26 }
27
28 protected function getNotifyTextCode(string $userGender): string
29 {
30 return "IM_MESSAGE_MENTION_COMMENT_{$userGender}";
31 }
32
33 protected function getTitleWithContext(string $title, Message $message): string
34 {
35 $chatId = $message->getChat()->getParentChatId();
36 $messageId = $message->getChat()->getParentMessageId();
37
38 return "[CONTEXT=chat{$chatId}/{$messageId}]{$title}[/CONTEXT]";
39 }
40
41 protected function shouldSendMentionNotification(Chat $chat, int $userId): bool
42 {
43 return true;
44 }
45}
if(! $messageFields||!isset($messageFields['message_id'])||!isset($messageFields['status'])||!CModule::IncludeModule("messageservice")) $messageId
Определения callback_ismscenter.php:26
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
getTitleWithContext(string $title, Message $message)
Определения CommentMentionService.php:33
shouldSendMentionNotification(Chat $chat, int $userId)
Определения CommentMentionService.php:41
Определения Uuid.php:3
$message
Определения payment.php:8
$title
Определения pdf.php:123