1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
AccessService.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Im\V2\Service
;
4
5
use
Bitrix\Im\V2\Chat
;
6
use
Bitrix\Im\V2\Entity\User\User
;
7
use
Bitrix\Im\V2\Result
;
8
9
class
AccessService
10
{
11
public
function
checkUserDialogAccess
(
int
$targetUserId,
int
$userId
):
Result
12
{
13
return
User::getInstance
($targetUserId)->checkAccess(
$userId
);
14
}
15
16
public
function
checkChatAccess
(
int
$chatId,
int
$userId
):
Result
17
{
18
return
Chat::getInstance
($chatId)->checkAccess(
$userId
);
19
}
20
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\Im\User\getInstance
static getInstance($userId=null)
Определения
user.php:45
Bitrix\Im\V2\Entity\User\User
Определения
User.php:27
Bitrix\Im\V2\Service\AccessService
Определения
AccessService.php:10
Bitrix\Im\V2\Service\AccessService\checkUserDialogAccess
checkUserDialogAccess(int $targetUserId, int $userId)
Определения
AccessService.php:11
Bitrix\Im\V2\Service\AccessService\checkChatAccess
checkChatAccess(int $chatId, int $userId)
Определения
AccessService.php:16
Bitrix\Main\Application\getInstance
static getInstance()
Определения
application.php:98
Bitrix\Main\DB\Result
Определения
result.php:20
Bitrix\Im\V2\Chat
Bitrix\Im\V2\Service
Определения
AccessService.php:3
bitrix
modules
im
lib
V2
Service
AccessService.php
Создано системой
1.14.0