Paginator\Adapter\QueryBuilder::setQueryBuilder

public setQueryBuilder (Phalcon\Mvc\Model\Query\Builder $builder) Set query builder object

Paginator\Adapter\QueryBuilder::getQueryBuilder

public getQueryBuilder () Get query builder object

Paginator\Adapter\QueryBuilder::getPaginate

public getPaginate () Returns a slice of the resultset to show in the pagination

Paginator\Adapter\QueryBuilder::getCurrentPage

public getCurrentPage () Get the current page number

Paginator\Adapter\QueryBuilder

extends abstract class Phalcon\Paginator\Adapter implements Phalcon\Paginator\AdapterInterface Source on GitHub Pagination using a PHQL query builder as source of data use Phalcon\Paginator\Adapter\QueryBuilder; $builder = $this->modelsManager->createBuilder() ->columns('id, name') ->from('Robots') ->orderBy('name'); $paginator = new QueryBuilder( [ 'builder' => $builder, 'limit' => 20,

Paginator\Adapter\NativeArray::getPaginate

public getPaginate () Returns a slice of the resultset to show in the pagination

Paginator\Adapter\NativeArray

extends abstract class Phalcon\Paginator\Adapter implements Phalcon\Paginator\AdapterInterface Source on GitHub Pagination using a PHP array as source of data use Phalcon\Paginator\Adapter\NativeArray; $paginator = new NativeArray( [ 'data' => array( ['id' => 1, 'name' => 'Artichoke'], ['id' => 2, 'name' => 'Carrots'], ['id' => 3, 'name' => 'Beet'], ['id' => 4, 'name' => 'Lettuce'], ['id

Paginator\Adapter\Model::getPaginate

public getPaginate () Returns a slice of the resultset to show in the pagination

Paginator\Adapter\Model

extends abstract class Phalcon\Paginator\Adapter implements Phalcon\Paginator\AdapterInterface Source on GitHub This adapter allows to paginate data using a Phalcon\Mvc\Model resultset as a base. use Phalcon\Paginator\Adapter\Model; $paginator = new Model( [ 'data' => Robots::find(), 'limit' => 25, 'page' => $currentPage ] ); $paginate = $paginator->getPaginate(); Methods public __construct (array $config) Phalcon\Paginator\Adapter\Model

Paginator\AdapterInterface::setLimit

abstract public setLimit (mixed $limit) ...