Class Phalcon\Paginator\Adapter\Model

implements Phalcon\Paginator\AdapterInterface

This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as base

Methods

public __construct (unknown $config)

Phalcon\Paginator\Adapter\Model constructor

public setCurrentPage (unknown $page)

Set the current page number

public setLimit (unknown $limitRows)

Set current rows limit

public getLimit ()

Get current rows limit

public getPaginate ()

Returns a slice of the resultset to show in the pagination