Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
workgrouprequestsinsender.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
WorkgroupRequestsInSender
extends
WorkgroupRequestsSender
16
{
17
protected
function
getWorkgroupCounters
($workgroupId): array
18
{
19
return
[
20
Counter\CounterDictionary::COUNTER_WORKGROUP_REQUESTS_IN => Counter\CounterController::getValue(
Counter
\
CounterDictionary::COUNTER_WORKGROUP_REQUESTS_IN
, $workgroupId),
21
];
22
}
23
24
protected
function
getRoleFilterValue
($initiatePermsValue): array
25
{
26
switch
($initiatePermsValue)
27
{
28
case
UserToGroupTable::ROLE_MODERATOR
:
29
$roleFilterValue = [
UserToGroupTable::ROLE_OWNER
,
UserToGroupTable::ROLE_MODERATOR
] ;
30
break
;
31
default
:
32
$roleFilterValue = [
UserToGroupTable::ROLE_OWNER
];
33
}
34
35
return
$roleFilterValue;
36
}
37
}
Bitrix\Socialnetwork\Internals\Counter\CounterDictionary\COUNTER_WORKGROUP_REQUESTS_IN
const COUNTER_WORKGROUP_REQUESTS_IN
Definition
counterdictionary.php:15
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsInSender
Definition
workgrouprequestsinsender.php:16
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsInSender\getRoleFilterValue
getRoleFilterValue($initiatePermsValue)
Definition
workgrouprequestsinsender.php:24
Bitrix\Socialnetwork\Internals\Counter\Push\WorkgroupRequestsInSender\getWorkgroupCounters
getWorkgroupCounters($workgroupId)
Definition
workgrouprequestsinsender.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_MODERATOR
const ROLE_MODERATOR
Definition
usertogroup.php:35
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
workgrouprequestsinsender.php
Создано системой
1.10.0