1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
NullUser.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Entity\User;
4
5use Bitrix\Im\V2\Chat\ChatError;
6use Bitrix\Im\V2\Result;
7
8class NullUser extends User
9{
10
11 public function getId(): ?int
12 {
13 return null;
14 }
15
16 public function getName(): ?string
17 {
18 return \Bitrix\Im\User::formatFullNameFromDatabase([]);
19 }
20
21 public function isOnlineDataFilled(bool $withStatus): bool
22 {
23 return true;
24 }
25
26 protected function checkAccessInternal(User $otherUser): Result
27 {
28 return (new Result())->addError(new ChatError(ChatError::ACCESS_DENIED));
29 }
30
31 public function isExist(): bool
32 {
33 return false;
34 }
35
36 public function isActive(): bool
37 {
38 return false;
39 }
40}
const ACCESS_DENIED
Определения ChatError.php:19
isOnlineDataFilled(bool $withStatus)
Определения NullUser.php:21
checkAccessInternal(User $otherUser)
Определения NullUser.php:26
Определения result.php:20