Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
MyModeFilter.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
MyModeFilter
extends
AbstractModeFilter
10
{
11
public
function
apply
(
Query
$query): void
12
{
13
$query->where(
14
Query::filter()
15
->logic(ConditionTree::LOGIC_OR)
16
->where($this->
getParticipantCondition
())
17
);
18
$query->
setOrder
([
'PIN.ID'
=>
'DESC'
,
'DATE_ACTIVITY'
=>
'DESC'
]);
19
}
20
}
Bitrix\Main\ORM\Query\Filter\ConditionTree
Definition
conditiontree.php:28
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Main\ORM\Query\Query\setOrder
setOrder($order)
Definition
query.php:474
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\AbstractModeFilter
Definition
AbstractModeFilter.php:11
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\AbstractModeFilter\getParticipantCondition
getParticipantCondition()
Definition
AbstractModeFilter.php:35
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\MyModeFilter
Definition
MyModeFilter.php:10
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode\MyModeFilter\apply
apply(Query $query)
Definition
MyModeFilter.php:11
Bitrix\Socialnetwork\UserToGroupTable
Definition
usertogroup.php:33
Bitrix\Socialnetwork\Space\List\Query\Filter\Mode
Definition
AbstractModeFilter.php:3
modules
socialnetwork
lib
Space
List
Query
Filter
Mode
MyModeFilter.php
Создано системой
1.10.0