mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
FilterEditor: url-setter and protected lazy-shortcut
This commit is contained in:
parent
e75d0aa10e
commit
118abbe980
@ -56,6 +56,20 @@ class FilterEditor extends AbstractWidget
|
|||||||
return $this->filter;
|
return $this->filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function setUrl($url)
|
||||||
|
{
|
||||||
|
$this->url = $url;
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function url()
|
||||||
|
{
|
||||||
|
if ($this->url === null) {
|
||||||
|
$this->url = Url::fromRequest();
|
||||||
|
}
|
||||||
|
return $this->url;
|
||||||
|
}
|
||||||
|
|
||||||
protected function select($name, $list, $selected, $attributes = null)
|
protected function select($name, $list, $selected, $attributes = null)
|
||||||
{
|
{
|
||||||
$view = $this->view();
|
$view = $this->view();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user