Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
workgrouprequestsoutsender.php
1
<?php
2
10
namespace
Bitrix\Socialnetwork\Internals\Counter\Push
;
11
12
use
Bitrix\Socialnetwork\UserToGroupTable
;
13
use
Bitrix\Socialnetwork\Internals\Counter
;
14
15
class
WorkgroupRequestsOutSender
extends
WorkgroupRequestsSender
16
{
17
protected
function
getWorkgroupCounters
($workgroupId): array
18
{
19
return
[
20
Counter\CounterDictionary::COUNTER_WORKGROUP_REQUESTS_OUT => Counter\CounterController::getValue(
Counter
\
CounterDictionary::COUNTER_WORKGROUP_REQUESTS_OUT
, $workgroupId),
21
];
22
}
23
24
protected
function
getRoleFilterValue
($initiatePermsValue): array
25
{
26
switch
($initiatePermsValue)
27
{
28
case
UserToGroupTable::ROLE_USER
:
29
$roleFilterValue =
UserToGroupTable::getRolesMember
();
30
break
;
31
case
UserToGroupTable::ROLE_MODERATOR
:
32
$roleFilterValue = [
UserToGroupTable::ROLE_OWNER
,
UserToGroupTable::ROLE_MODERATOR
] ;
33
break
;
34
default
:
35
$roleFilterValue = [
UserToGroupTable::ROLE_OWNER
];
36
}
37
38
return
$roleFilterValue;
39
}
40
}
Bitrix\Socialnetwork\Internals\Counter\CounterDictionary\COUNTER_WORKGROUP_REQUESTS_OUT
const COUNTER_WORKGROUP_REQUESTS_OUT
Definition
counterdictionary.php:16
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsOutSender
Definition
workgrouprequestsoutsender.php:16
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsOutSender\getRoleFilterValue
getRoleFilterValue($initiatePermsValue)
Definition
workgrouprequestsoutsender.php:24
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsOutSender\getWorkgroupCounters
getWorkgroupCounters($workgroupId)
Definition
workgrouprequestsoutsender.php:17
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsSender
Definition
workgrouprequestssender.php:19
Bitrix\Socialnetwork\Internals\Counter
Definition
counter.php:14
Bitrix\Socialnetwork\UserToGroupTable
Definition
usertogroup.php:33
Bitrix\Socialnetwork\UserToGroupTable\ROLE_USER
const ROLE_USER
Definition
usertogroup.php:36
Bitrix\Socialnetwork\UserToGroupTable\ROLE_MODERATOR
const ROLE_MODERATOR
Definition
usertogroup.php:35
Bitrix\Socialnetwork\UserToGroupTable\getRolesMember
static getRolesMember()
Definition
usertogroup.php:73
Bitrix\Socialnetwork\UserToGroupTable\ROLE_OWNER
const ROLE_OWNER
Definition
usertogroup.php:34
Bitrix\Socialnetwork\Internals\Counter\Push
Definition
pushsender.php:3
Bitrix\Socialnetwork\Internals\Counter
Definition
countercontroller.php:9
modules
socialnetwork
lib
internals
counter
push
workgrouprequestsoutsender.php
Создано системой
1.10.0