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:
Eric Lippmann 2014-04-15 15:36:13 +02:00
parent 139023571f
commit 2cc3823a95
1 changed files with 19 additions and 0 deletions

View 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);
}