extends abstract class Phalcon\Paginator\Adapter
implements Phalcon\Paginator\AdapterInterface
Pagination using a PHP array as source of data
use Phalcon\Paginator\Adapter\NativeArray; $paginator = new NativeArray( [ "data" => [ ["id" => 1, "name" => "Artichoke"], ["id" => 2, "name" => "Carrots"], ["id" => 3, "name" => "Beet"], ["id" => 4, "name" => "Lettuce"], ["id" => 5, "name" => ""], ], "limit" => 2, "page" => $currentPage, ] );
Phalcon\Paginator\Adapter\NativeArray constructor
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–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Paginator_Adapter_NativeArray.html