💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 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 ~~~ <?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](#) »