企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 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](#) »