Programming Language PHP

Namespace Oro\Component\DoctrineUtils\ORM

Class QueryBuilderUtil

Method/Function getPageOffset

Total Examples 1

1 code examples of PHP Oro\Component\DoctrineUtils\ORM\QueryBuilderUtil::getPageOffset extracted from open source projects

Was this example useful?
     * Calculates the page offset
     * @param int $page  The page number
     * @param int $limit The maximum number of items per page
    protected function getOffset(int $page, int $limit): int
        return QueryBuilderUtil::getPageOffset($page, $limit);