Paginator\AdapterInterface::setCurrentPage

abstract public setCurrentPage (mixed $page) ...

Paginator\AdapterInterface::getPaginate

abstract public getPaginate () ...

Paginator\AdapterInterface::getLimit

abstract public getLimit () ...

Paginator\AdapterInterface

Source on GitHub Methods abstract public setCurrentPage (mixed $page) ... abstract public getPaginate () ... abstract public setLimit (mixed $limit) ... abstract public getLimit () ...

Paginator\Adapter::setLimit

public setLimit (mixed $limitRows) Set current rows limit

Paginator\Adapter::setCurrentPage

public setCurrentPage (mixed $page) Set the current page number

Paginator\Adapter::getLimit

public getLimit () Get current rows limit

Paginator\Adapter

Source on GitHub Methods public setCurrentPage (mixed $page) Set the current page number public setLimit (mixed $limitRows) Set current rows limit public getLimit () Get current rows limit

Pagination

The process of pagination takes place when we need to present big groups of arbitrary data gradually. Phalcon\Paginator offers a fast and convenient way to split these sets of data into browsable pages. Data Adapters This component makes use of adapters to encapsulate different sources of data: Adapter Description Phalcon\Paginator\Adapter\NativeArray Use a PHP array as source data Phalcon\Paginator\Adapter\Model Use a Phalcon\Mvc\Model\Resultset object as source data. Since PDO doesn’t support

ODM (Object-Document Mapper)

In addition to its ability to map tables in relational databases, Phalcon can map documents from NoSQL databases. The ODM offers a CRUD functionality, events, validations among other services. Due to the absence of SQL queries and planners, NoSQL databases can see real improvements in performance using the Phalcon approach. Additionally, there are no SQL building reducing the possibility of SQL injections. The following NoSQL databases are supported: Name Description MongoDB MongoDB is a scalab