Documentation

Interface Phalcon\Paginator\AdapterInterface

Source on GitHub

Phalcon\Paginator\AdapterInterface initializer

Methods

abstract public setCurrentPage (int $page)

Set the current page number

abstract public int getCurrentPage ()

Get the current page number

abstract public setLimit (int $limit)

Set current rows limit

abstract public int getLimit ()

Get the current rows limit

abstract public stdClass getPaginate ()

Returns a slice of the resultset to show in the pagination