Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Member.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Space
;
4
5
use Bitrix\Socialnetwork\EO_UserToGroup;
6
use
Bitrix\Socialnetwork\UserToGroupTable
;
7
8
class
Member
extends
EO_UserToGroup
9
{
10
public
function
isInvited
(): bool
11
{
12
return
$this->getRole() ===
UserToGroupTable::ROLE_REQUEST
13
&& $this->getInitiatedByType() ===
UserToGroupTable::INITIATED_BY_GROUP
;
14
}
15
16
public
function
isAwaiting
(): bool
17
{
18
return
$this->getRole() ===
UserToGroupTable::ROLE_REQUEST
19
&& $this->getInitiatedByType() ===
UserToGroupTable::INITIATED_BY_USER
;
20
}
21
22
public
function
isMember
(): bool
23
{
24
return
in_array(
25
$this->getRole(),
26
UserToGroupTable::getRolesMember
(),
27
true
28
);
29
}
30
}
Bitrix\Socialnetwork\Space\Member
Definition
Member.php:9
Bitrix\Socialnetwork\Space\Member\isMember
isMember()
Definition
Member.php:22
Bitrix\Socialnetwork\Space\Member\isAwaiting
isAwaiting()
Definition
Member.php:16
Bitrix\Socialnetwork\Space\Member\isInvited
isInvited()
Definition
Member.php:10
Bitrix\Socialnetwork\UserToGroupTable
Definition
usertogroup.php:33
Bitrix\Socialnetwork\UserToGroupTable\ROLE_REQUEST
const ROLE_REQUEST
Definition
usertogroup.php:38
Bitrix\Socialnetwork\UserToGroupTable\INITIATED_BY_GROUP
const INITIATED_BY_GROUP
Definition
usertogroup.php:41
Bitrix\Socialnetwork\UserToGroupTable\INITIATED_BY_USER
const INITIATED_BY_USER
Definition
usertogroup.php:40
Bitrix\Socialnetwork\UserToGroupTable\getRolesMember
static getRolesMember()
Definition
usertogroup.php:73
Bitrix\Socialnetwork\Space
modules
socialnetwork
lib
Space
Member.php
Создано системой
1.10.0