mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Paginator may be ready for QueryInterface
This commit is contained in:
parent
c75a83d1d2
commit
c9ce7c53b0
@ -28,11 +28,13 @@
|
|||||||
|
|
||||||
namespace Icinga\Web\Paginator\Adapter;
|
namespace Icinga\Web\Paginator\Adapter;
|
||||||
|
|
||||||
|
use Zend_Paginator_Adapter_Interface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see Zend_Paginator_Adapter_Interface
|
* @see Zend_Paginator_Adapter_Interface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class QueryAdapter implements \Zend_Paginator_Adapter_Interface
|
class QueryAdapter implements Zend_Paginator_Adapter_Interface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Array
|
* Array
|
||||||
@ -53,9 +55,7 @@ class QueryAdapter implements \Zend_Paginator_Adapter_Interface
|
|||||||
*
|
*
|
||||||
* @param array $query Query to paginate
|
* @param array $query Query to paginate
|
||||||
*/
|
*/
|
||||||
// TODO: Re-add abstract Query type as soon as a more generic one
|
// TODO: This might be ready for (QueryInterface $query)
|
||||||
// is available. Should fit Protocol-Queries too.
|
|
||||||
// public function __construct(\Icinga\Backend\Query $query)
|
|
||||||
public function __construct($query)
|
public function __construct($query)
|
||||||
{
|
{
|
||||||
$this->query = $query;
|
$this->query = $query;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user