Skip to content

Commit

Permalink
FilterEditor: allow additional parameter control
Browse files Browse the repository at this point in the history
We may want to keep additional parameters in our url and ignore other
ones when the filter changes
  • Loading branch information
Thomas-Gelf committed Nov 15, 2014
1 parent 269f4b4 commit c5ca3b6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions library/Icinga/Web/Widget/FilterEditor.php
Expand Up @@ -24,6 +24,12 @@ class FilterEditor extends AbstractWidget

protected $query;

protected $url;

protected $preserveParams = array();

protected $ignoreParams = array();

/**
* @var string
*/
Expand Down Expand Up @@ -76,6 +82,18 @@ public function setQuery($query)
return $this;
}

public function ignoreParams()
{
$this->ignoreParams = func_get_args();
return $this;
}

public function preserveParams()
{
$this->preserveParams = func_get_args();
return $this;
}

protected function select($name, $list, $selected, $attributes = null)
{
$view = $this->view();
Expand Down

0 comments on commit c5ca3b6

Please sign in to comment.