mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
parent
295254d1d5
commit
17ebe07e57
@ -5,6 +5,7 @@ namespace Icinga\Web\Widget;
|
||||
|
||||
use Icinga\Web\Form;
|
||||
use Icinga\Web\Request;
|
||||
use Icinga\Data\Sortable;
|
||||
|
||||
/**
|
||||
* SortBox widget
|
||||
@ -49,6 +50,13 @@ class SortBox extends AbstractWidget
|
||||
*/
|
||||
protected $request;
|
||||
|
||||
/**
|
||||
* What to apply sort parameters on
|
||||
*
|
||||
* @var Sortable
|
||||
*/
|
||||
protected $query = null;
|
||||
|
||||
/**
|
||||
* Create a SortBox with the entries from $sortFields
|
||||
*
|
||||
@ -87,6 +95,17 @@ class SortBox extends AbstractWidget
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Sortable $query
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setQuery(Sortable $query)
|
||||
{
|
||||
$this->query = $query;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render this SortBox as HTML
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user