mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-16 10:24:27 +02:00
parent
bcdb670f5c
commit
59e7731efb
@ -10,13 +10,14 @@ use Icinga\Application\Benchmark;
|
|||||||
use Icinga\Application\Logger;
|
use Icinga\Application\Logger;
|
||||||
use Icinga\Data\QueryInterface;
|
use Icinga\Data\QueryInterface;
|
||||||
use Icinga\Data\Filter\Filter;
|
use Icinga\Data\Filter\Filter;
|
||||||
|
use Icinga\Data\FilterColumns;
|
||||||
use Icinga\Data\SortRules;
|
use Icinga\Data\SortRules;
|
||||||
use Icinga\Exception\QueryException;
|
use Icinga\Exception\QueryException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query class supposed to mediate between a repository and its datasource's query
|
* Query class supposed to mediate between a repository and its datasource's query
|
||||||
*/
|
*/
|
||||||
class RepositoryQuery implements QueryInterface, SortRules, Iterator
|
class RepositoryQuery implements QueryInterface, SortRules, FilterColumns, Iterator
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The repository being used
|
* The repository being used
|
||||||
@ -141,6 +142,26 @@ class RepositoryQuery implements QueryInterface, SortRules, Iterator
|
|||||||
return $columns;
|
return $columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return this query's available filter columns with their optional label as key
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getFilterColumns()
|
||||||
|
{
|
||||||
|
return $this->repository->getFilterColumns();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return this query's available search columns
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function getSearchColumns()
|
||||||
|
{
|
||||||
|
return $this->repository->getSearchColumns();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter this query using the given column and value
|
* Filter this query using the given column and value
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user