Paginator\Adapter\QueryBuilder::setQueryBuilder

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

Paginator\Adapter\QueryBuilder::getPaginate

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

Paginator\Exception

extends class Phalcon\Exception implements Throwable Source on GitHub Methods final private Exception __clone () inherited from Exception Clone the exception public __construct ([string $message], [int $code], [Exception $previous]) inherited from Exception Exception constructor public __wakeup () inherited from Exception ... final public string getMessage () inherited from Exception Gets the Exception message final public int getCode () inherited from Exception Gets the Exception code fin

Phalcon Developer Tools

These tools are a collection of useful scripts to generate skeleton code. Core components of your application can be generated with a simple command, allowing you to easily develop applications using Phalcon. If you prefer to use the web version instead of the console, this blog post offers more information. Download You can download or clone a cross platform package containing the developer tools from Github. Installation These are detailed instructions on how to install the developer tools

Paginator\Adapter\NativeArray::getPaginate

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

Paginator\Adapter\Model::getPaginate

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

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\AdapterInterface::setLimit

abstract public setLimit (mixed $limit) ...

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\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