src/Paginator.php
public function getLimits()
    {
        $totalPages = $this->getTotalPages();

        $this->currentPage = ($this->currentPage > $totalPages) ? $totalPages : $this->currentPage;

        $dLimit = ($this->currentPage - 1) * $this->itemsPerPage;

        return array($dLimit, $this->itemsPerPage);
    }
public function getLimits()
    {
        $totalPages = $this->getTotalPages();

        $this->currentPage = ($this->currentPage > $totalPages) ? $totalPages : $this->currentPage;

        $dLimit = ($this->currentPage - 1) * $this->itemsPerPage;

        return array($dLimit, $this->itemsPerPage);
    }
public function getLimits ( ) { $ totalPages = $ this -> getTotalPages ( ) ; $ this -> currentPage = ( $ this -> currentPage > $ totalPages ) ? $ totalPages : $ this -> currentPage ; $ dLimit = ( $ this -> currentPage - 1 ) * $ this -> itemsPerPage ; return array ( $ dLimit , $ this -> itemsPerPage ) ; }
Returns the offset ant length for limiting results to current page
@return array
Returns the offset ant length for limiting results to current page