implements Phalcon\Paginator\AdapterInterface
Pagination using a PHQL query builder as source of data
$builder = $this->modelsManager->createBuilder() ->columns('id, name') ->from('Robots') ->orderBy('name'); $paginator = new Phalcon\Paginator\Adapter\QueryBuilder(array( "builder" => $builder, "limit"=> 20, "page" => 1 ));
Returns a slice of the resultset to show in the pagination
Set current rows limit
Get current rows limit
Set current page number
Get current page number
Set query builder object
Get query builder object
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Paginator_Adapter_QueryBuilder.html