1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
recepient.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Internals\EventService\Recepients;
4
5use Bitrix\Socialnetwork\Permission\User\UserModel;
6use Bitrix\Socialnetwork\Internals\Space\LiveWatch\LiveWatchService;
7
9{
10 private int $id;
11 private bool $isOnline;
12
13 public function __construct(int $id, bool $isOnline = true)
14 {
15 $this->id = $id;
16 $this->isOnline = $isOnline;
17 }
18
19 public function getId(): int
20 {
21 return $this->id;
22 }
23
24 public function isOnline(): bool
25 {
26 return $this->isOnline;
27 }
28
29 public function isWatchingSpaces(): bool
30 {
31 return $this->isOnline && LiveWatchService::getInstance()->isUserWatchingSpaces($this->id);
32 }
33
34 public function getAccessCodes(): array
35 {
36 // merge for calendar attendees codes support
37 return array_merge(UserModel::createFromId($this->id)->getAccessCodes(), ['UA']);
38 }
39}
__construct(int $id, bool $isOnline=true)
Определения recepient.php:13
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804