calculateQueryLimits
array public static \Bitrix\Main\DB\Paginator::calculateQueryLimits( integer $numberOfRecords, integer $pageNumber, integer $numberOfRecordsPerPage, boolean $backward );
This static method returns two element array with offset and limit based on paging parameters.
Parameters
Parameter | Description | Version |
---|---|---|
$numberOfRecords | Total number of records returned by SQL query. | |
$pageNumber | Page to be displayed. | |
$numberOfRecordsPerPage | Page size. | |
$backward | Use backward paging. |
Examples
© «Bitrix24», 2001-2024
Up