Table Of Contents

Previous topic

Class Phalcon\Paginator\Adapter\Model

Next topic

Class Phalcon\Paginator\Exception

This Page

Class Phalcon\Paginator\Adapter\NativeArray

implements Phalcon\Paginator\AdapterInterface

Component of pagination by array data

Methods

public __construct (array $config)

Phalcon\Paginator\Adapter\NativeArray constructor

public setCurrentPage (int $page)

Set the current page number

public stdClass getPaginate ()

Returns a slice of the resultset to show in the pagination