Class **Phalcon\\Paginator\\Adapter\\NativeArray** ================================================== *extends* abstract class :doc:`Phalcon\\Paginator\\Adapter ` *implements* :doc:`Phalcon\\Paginator\\AdapterInterface ` .. role:: raw-html(raw) :format: html :raw-html:`Source on GitHub` Pagination using a PHP array as source of data .. code-block:: php array( array('id' => 1, 'name' => 'Artichoke'), array('id' => 2, 'name' => 'Carrots'), array('id' => 3, 'name' => 'Beet'), array('id' => 4, 'name' => 'Lettuce'), array('id' => 5, 'name' => '') ), "limit" => 2, "page" => $currentPage ) ); Methods ------- public **__construct** (*array* $config) Phalcon\\Paginator\\Adapter\\NativeArray constructor public **getPaginate** () Returns a slice of the resultset to show in the pagination public **setCurrentPage** (*unknown* $page) inherited from Phalcon\\Paginator\\Adapter Set the current page number public **setLimit** (*unknown* $limitRows) inherited from Phalcon\\Paginator\\Adapter Set current rows limit public **getLimit** () inherited from Phalcon\\Paginator\\Adapter Get current rows limit