mouf/utils.common.paginable-interface
最新稳定版本:v1.0.0
Composer 安装命令:
composer require mouf/utils.common.paginable-interface
包简介
This package contains an interface used by objects to say they can paginate data. The concept is very simple, the object implements a paginate method that takes a limit and an offset, and that's it!
README 文档
README
This package contains an interface used by many objects to declare they have the ability to paginate the result set they represent.
If your objects represent a resultset (for instance your object is a resultset from a query to a database), and if you can paginate this result set (return only a part of the result using an offset and a limit), then your object should implement PaginateInterface.
interface PaginableInterface { /** * Paginates the result set. * * @param int $limit * @param int $offset */ public function paginate($limit, $offset = 0); }
Mouf package
This package is part of Mouf (http://mouf-php.com), an effort to ensure good developing practices by providing a graphical dependency injection framework.
统计信息
- 总下载量: 240.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-05-22