Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
message.php
1<?php declare(strict_types=1);
2
4
6
13{
15 private $isEnabled;
16
17 public function __construct()
18 {
19 $this->isEnabled = \Bitrix\Main\Loader::includeModule('im');
20 }
21
29 public function getMessage(int $messageId): ?array
30 {
31 if ($this->isEnabled)
32 {
33 return \CIMMessenger::GetById($messageId);
34 }
35
36 return null;
37 }
38}
getMessage(int $messageId)
Definition message.php:29