Code

Updated filters
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Mar 2010 15:40:34 +0000 (15:40 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Mar 2010 15:40:34 +0000 (15:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16384 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filter.inc

index fcf2542a6dcf424b69e9af9d4066869be559c2be..28873cd51975d5f5b54b97340078796c9b24aac1 100644 (file)
@@ -400,6 +400,12 @@ class filter {
     $result.= "<ul class='level2'>";
     $result.= "<li><a href='#'>Dummy placeholder</a></li>";
     $result.= "<li$separator><a href='#' onClick='document.getElementById(\"filter\").value= \"config-filter\";mainform.submit();'>".image("images/configure.png")."&nbsp;"._("Edit filters")."...</a></li>";
+
+#############################
+print_a(userFilter::getFilter($category=array()));
+print_a($this->searches);
+#############################
+
 #$result.= "<li$separator><a href='#' onClick='document.getElementById(\"actionmenu\").value= \"".$action['name']."\";mainform.submit();'>$img"._($action['label'])."</a></li>";
 
 # AUTOCOMPLETER and getTextbox
@@ -411,6 +417,12 @@ class filter {
     return "<div id='filtermenu'>".$result."</li></ul><div>$script";
   }
 
+
+  function getFixedFilters()
+  {
+    return array_keys($this->searches);
+  }
+
 }