extends abstract class Phalcon\Paginator\Adapter
implements Phalcon\Paginator\AdapterInterface
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, 'page' => 1, ] );
Get the current page number
Set query builder object
Get query builder object
Returns a slice of the resultset to show in the pagination
Set the current page number
Set current rows limit
Get current rows limit
© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Paginator_Adapter_QueryBuilder.html