1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
recepient.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Internals\EventService\Recepients;
4
5
use Bitrix\Socialnetwork\Permission\User\UserModel;
6
use Bitrix\Socialnetwork\Internals\Space\LiveWatch\LiveWatchService;
7
8
class
Recepient
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
}
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient
Определения
recepient.php:9
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient\getId
getId()
Определения
recepient.php:19
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient\isWatchingSpaces
isWatchingSpaces()
Определения
recepient.php:29
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient\isOnline
isOnline()
Определения
recepient.php:24
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient\getAccessCodes
getAccessCodes()
Определения
recepient.php:34
Bitrix\Socialnetwork\Internals\EventService\Recepients\Recepient\__construct
__construct(int $id, bool $isOnline=true)
Определения
recepient.php:13
Bitrix\Socialnetwork\Internals\Space\LiveWatch\LiveWatchService\getInstance
static getInstance()
Определения
livewatchservice.php:17
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
bitrix
modules
socialnetwork
lib
internals
eventservice
recepients
recepient.php
Создано системой
1.14.0