Метод pagerOf

private static

Сигнатура метода

private static function pagerOf(?PaginationStructure $pagination): Pager

Возвращает: Pager

Описание

The page a list is asked for. A request that names no paging gets the default page of the framework rather than the whole set: an unbounded external read is not on offer. The bounds are checked here because {@see PaginationStructure} lets a negative page through while {@see Pager} throws on one, and a page a client can fix must be answered as a request it can fix - the same guard the group of product rows keeps ({@see \Bitrix\Crm\V2\Infrastructure\Rest\Dto\Mapping\Item\ProductRow\ProductRowListRequestMapper::mapPager()}).

Параметры

1
Имя Тип По умолчанию Флаги
$pagination ?PaginationStructure —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Infrastructure/Rest/CustomController/Address/Address.php
Расположение метода в файле
Строки 289–308

Исходный код

PHP