[icinga-checkins] icinga.org: icingaweb2/master: FilterEditor: allow to set the query from outside

git at icinga.org git at icinga.org
Sun Nov 16 00:38:41 CET 2014


Module: icingaweb2
Branch: master
Commit: 269f4b4c8342712b56465c0ba782ded82a18bfdd
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=269f4b4c8342712b56465c0ba782ded82a18bfdd

Author: Thomas Gelf <thomas at gelf.net>
Date:   Sat Nov 15 22:55:26 2014 +0100

FilterEditor: allow to set the query from outside

Query will be used to provide a column list

---

 library/Icinga/Web/Widget/FilterEditor.php |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/library/Icinga/Web/Widget/FilterEditor.php b/library/Icinga/Web/Widget/FilterEditor.php
index 3cc5a4f..ca4c5b6 100644
--- a/library/Icinga/Web/Widget/FilterEditor.php
+++ b/library/Icinga/Web/Widget/FilterEditor.php
@@ -70,6 +70,12 @@ class FilterEditor extends AbstractWidget
         return $this->url;
     }
 
+    public function setQuery($query)
+    {
+        $this->query = $query;
+        return $this;
+    }
+
     protected function select($name, $list, $selected, $attributes = null)
     {
         $view = $this->view();



More information about the icinga-checkins mailing list