Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
OtherModeFilter.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode
;
4
5
use
Bitrix\Main\ORM\Query\Filter\ConditionTree
;
6
use
Bitrix\Main\ORM\Query\Query
;
7
use
Bitrix\Socialnetwork\UserToGroupTable
;
8
9
final
class
OtherModeFilter
extends
AbstractModeFilter
10
{
11
public
function
apply
(
Query
$query): void
12
{
13
$query->where(Query::filter()
14
->logic(ConditionTree::LOGIC_OR)
15
->where(Query::filter()
16
->whereNull(
'MEMBER.USER_ID'
)
17
->where(
'VISIBLE'
,
'Y'
)
18
)
19
->where(
'MEMBER.ROLE'
,
UserToGroupTable::ROLE_REQUEST
)
20
);
21
}
22
}
Bitrix\Main\ORM\Query\Filter\ConditionTree
Definition
conditiontree.php:28
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\AbstractModeFilter
Definition
AbstractModeFilter.php:11
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\OtherModeFilter
Definition
OtherModeFilter.php:10
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\OtherModeFilter\apply
apply(Query $query)
Definition
OtherModeFilter.php:11
Bitrix\Socialnetwork\UserToGroupTable
Definition
usertogroup.php:33
Bitrix\Socialnetwork\UserToGroupTable\ROLE_REQUEST
const ROLE_REQUEST
Definition
usertogroup.php:38
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode
Definition
AbstractModeFilter.php:3
modules
socialnetwork
lib
Space
List
Query
Filter
Mode
OtherModeFilter.php
Создано системой
1.10.0