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