Prado\Data\SqlMap\DataMapper\TSqlMapPagedList::getOffsetAndLimit PHP Méthode

getOffsetAndLimit() protected méthode

Calculate the data fetch offsets and limits.
protected getOffsetAndLimit ( $param ) : array
Résultat array 1st element is the offset, 2nd element is the limit.
    protected function getOffsetAndLimit($param)
    {
        $index = $param->getNewPageIndex();
        $pageSize = $this->getPageSize();
        return $index < 1 ? array($index, $pageSize * 2) : array(($index - 1) * $pageSize, $pageSize * 3);
    }