1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
DialogIdFiller.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Pull\Event;
4
5
use Bitrix\Im\V2\Chat;
6
use Bitrix\Im\V2\Pull\Dto\Diff;
7
8
trait
DialogIdFiller
9
{
10
abstract
public
function
getTarget
(): ?
Chat
;
11
12
protected
function
getDiffByUser
(
int
$userId
):
Diff
13
{
14
return
new
Diff
(
$userId
, [
'dialogId'
=> $this->
getTarget
()?->getDialogId(
$userId
)]);
15
}
16
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Im\V2\Pull\Dto\Diff
Определения
Diff.php:6
Bitrix\Im\V2\Pull\Event\DialogIdFiller
trait DialogIdFiller
Определения
DialogIdFiller.php:9
Bitrix\Im\V2\Pull\Event\getTarget
getTarget()
Bitrix\Im\V2\Chat
Bitrix\Im\V2\Pull\Event\getDiffByUser
getDiffByUser(int $userId)
Определения
DialogIdFiller.php:12
bitrix
modules
im
lib
V2
Pull
Event
DialogIdFiller.php
Создано системой
1.14.0