https://github.com/thecodingmachine/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!
https://github.com/thecodingmachine/utils.common.paginable-interface
Last synced: 6 months ago
JSON representation
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!
- Host: GitHub
- URL: https://github.com/thecodingmachine/utils.common.paginable-interface
- Owner: thecodingmachine
- License: mit
- Created: 2013-05-22T13:38:59.000Z (over 12 years ago)
- Default Branch: 1.0
- Last Pushed: 2017-05-17T16:19:15.000Z (over 8 years ago)
- Last Synced: 2025-08-09T09:59:47.250Z (6 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
What is this package
====================
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*.
```php
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.