多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Class Phalcon\\Paginator\\Adapter\\Model # Class **Phalcon\\Paginator\\Adapter\\Model** *extends* abstract class [*Phalcon\\Paginator\\Adapter*](#) *implements*[*Phalcon\\Paginator\\AdapterInterface*](#) This adapter allows to paginate data using a Phalcon\\Mvc\\Model resultset as a base ``` <pre class="calibre14">``` <?php $paginator = new \Phalcon\Paginator\Adapter\Model( array( "data" => Robots::find(), "limit" => 25, "page" => $currentPage ) ); $paginate = $paginator->getPaginate(); ``` ``` ### Methods public **\_\_construct** (*unknown* $config) Phalcon\\Paginator\\Adapter\\Model 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 | - [索引](# "总目录") - [下一页](# "Class Phalcon\Paginator\Adapter\NativeArray") | - [上一页](# "Abstract class Phalcon\Paginator\Adapter") | - [API Indice](#) »