Add interface "QueryInterface" implementing Browsable, Fetchable, Filterable, Limitable, Sortable, Countable (WIP)
This interface is intended to be used within the data views and monitoring controllers. The monitoring list and show controllers should only query data views instead of the actual query. Thus a data view is required to implement the QueryInterface, which will be changed later. The name is not final because it somehow conflicts with the Queryable interface which is also marked as work in progress.
This commit is contained in:
parent
e804f56d5f
commit
026145356b
|
@ -2,12 +2,11 @@
|
|||
|
||||
namespace Icinga\Data;
|
||||
|
||||
use Countable;
|
||||
use Zend_Controller_Front;
|
||||
use Zend_Paginator;
|
||||
use Icinga\Web\Paginator\Adapter\QueryAdapter;
|
||||
|
||||
abstract class BaseQuery implements Browsable, Fetchable, Filterable, Limitable, Queryable, Sortable, Countable
|
||||
abstract class BaseQuery implements QueryInterface, Queryable
|
||||
{
|
||||
/**
|
||||
* Query data source
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Data;
|
||||
|
||||
use Countable;
|
||||
|
||||
interface QueryInterface extends Browsable, Fetchable, Filterable, Limitable, Sortable, Countable {};
|
Loading…
Reference in New Issue