FilterEditor: url-setter and protected lazy-shortcut

This commit is contained in:
Thomas Gelf 2014-11-15 22:54:40 +01:00
parent e75d0aa10e
commit 118abbe980

View File

@ -56,6 +56,20 @@ class FilterEditor extends AbstractWidget
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)
{
$view = $this->view();