Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
message.php
1
<?php declare(strict_types=1);
2
3
namespace
Bitrix\Im\Services
;
4
5
use
Bitrix\Main
;
6
12
class
Message
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
}
Bitrix\Im\Services\Message
Definition
message.php:13
Bitrix\Im\Services\Message\__construct
__construct()
Definition
message.php:17
Bitrix\Im\Services\Message\getMessage
getMessage(int $messageId)
Definition
message.php:29
Bitrix\Im\Services
Definition
message.php:3
Bitrix\Main
modules
im
lib
services
message.php
Создано системой
1.10.0