Implement interface "Browsable" for classes providing page turning
This interface is intended to be used everywhere a Zend_Paginator is returned within our code.
This commit is contained in:
parent
139023571f
commit
2cc3823a95
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Data;
|
||||
|
||||
/**
|
||||
* Interface for browsing data
|
||||
*/
|
||||
interface Browsable
|
||||
{
|
||||
/**
|
||||
* Paginate data
|
||||
*
|
||||
* @param int $itemsPerPage Number of items per page
|
||||
* @param int $pageNumber Current page number
|
||||
*
|
||||
* @return Zend_Paginator
|
||||
*/
|
||||
public function paginate($itemsPerPage = null, $pageNumber = null);
|
||||
}
|
Loading…
Reference in New Issue