FilterEditor: add redirect support

Not the cleanest way, could be improved
This commit is contained in:
Thomas Gelf 2014-11-15 23:18:50 +01:00
parent ac483a0fe6
commit dcc0c213b2

View File

@ -8,7 +8,9 @@ use Icinga\Data\Filter\Filter;
use Icinga\Data\Filter\FilterExpression;
use Icinga\Data\Filter\FilterChain;
use Icinga\Web\Url;
use Icinga\Application\Icinga;
use Icinga\Exception\ProgrammingError;
use Exception;
/**
* Filter
@ -96,6 +98,12 @@ class FilterEditor extends AbstractWidget
return $this;
}
protected function redirectNow($url)
{
$response = Icinga::app()->getFrontController()->getResponse();
$response->redirectAndExit($url);
}
protected function select($name, $list, $selected, $attributes = null)
{
$view = $this->view();