Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
IdListFilter.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Space\List\Query\Filter\Id
;
4
5
use
Bitrix\Main\ORM\Query\Query
;
6
use
Bitrix\Socialnetwork\Space\List\Query\Filter\FilterInterface
;
7
8
final
class
IdListFilter
implements
FilterInterface
9
{
10
public
function
__construct
(
private
array $spaceIds)
11
{}
12
13
public
function
apply
(
Query
$query): void
14
{
15
$query->whereIn(
'ID'
, $this->spaceIds);
16
}
17
}
Bitrix\Main\ORM\Query\Query
Definition
query.php:118
Bitrix\Socialnetwork\Space\List\Query\Filter\Id\IdListFilter
Definition
IdListFilter.php:9
Bitrix\Socialnetwork\Space\List\Query\Filter\Id\IdListFilter\__construct
__construct(private array $spaceIds)
Definition
IdListFilter.php:10
Bitrix\Socialnetwork\Space\List\Query\Filter\Id\IdListFilter\apply
apply(Query $query)
Definition
IdListFilter.php:13
Bitrix\Socialnetwork\Space\List\Query\Filter\FilterInterface
Definition
FilterInterface.php:8
Bitrix\Socialnetwork\Space\List\Query\Filter\Id
Definition
IdFilter.php:3
modules
socialnetwork
lib
Space
List
Query
Filter
Id
IdListFilter.php
Создано системой
1.10.0