mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-23 01:47:54 +02:00
File/Query: Fix applyFilter' and
order' not matching SimpleQuery's interfaces
refs #6722
This commit is contained in:
parent
da78445686
commit
6df7be7ee5
@ -5,6 +5,7 @@
|
|||||||
namespace Icinga\Protocol\File;
|
namespace Icinga\Protocol\File;
|
||||||
|
|
||||||
use Icinga\Data\SimpleQuery;
|
use Icinga\Data\SimpleQuery;
|
||||||
|
use Icinga\Data\Filter\Filter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Query
|
* Class Query
|
||||||
@ -32,7 +33,7 @@ class Query extends SimpleQuery
|
|||||||
/**
|
/**
|
||||||
* Nothing to do here
|
* Nothing to do here
|
||||||
*/
|
*/
|
||||||
public function applyFilter()
|
public function applyFilter(Filter $filter)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -42,9 +43,11 @@ class Query extends SimpleQuery
|
|||||||
*
|
*
|
||||||
* @return Query
|
* @return Query
|
||||||
*/
|
*/
|
||||||
public function order($dir)
|
public function order($field, $direction = null)
|
||||||
{
|
{
|
||||||
$this->sortDir = ($dir === null || strtoupper(trim($dir)) === 'DESC') ? self::SORT_DESC : self::SORT_ASC;
|
$this->sortDir = (
|
||||||
|
$direction === null || strtoupper(trim($direction)) === 'DESC'
|
||||||
|
) ? self::SORT_DESC : self::SORT_ASC;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user