mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
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
19
library/Icinga/Data/Browsable.php
Normal file
19
library/Icinga/Data/Browsable.php
Normal file
@ -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…
x
Reference in New Issue
Block a user