summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adcb188)
raw | patch | inline | side by side (parent: adcb188)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 Mar 2010 08:22:18 +0000 (08:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 Mar 2010 08:22:18 +0000 (08:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16356 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_filter.inc | patch | blob | history | |
gosa-core/include/class_listing.inc | patch | blob | history |
index cb70fb4ab98fdbe9bd961f6f31a05da3bddb7efc..5f2d94ec64750d0cc840e3196c0dd76e033d5d05 100644 (file)
var $xmlData;
var $searches= array();
var $search;
-
- #FIXME - Seems to be obsolete. Categories are defined in the listing.xml <objectType>
- # and not in the filter.xml anymore.
var $category= "";
var $objectStorage= array();
var $base= "";
var $converter= null;
var $pid;
- /* An editor which allows to create user defined ldap-filter.
- * Due to the fact that it requires additional ldap schemata
- * (objectClasses=gosaProperties) this is currently optional.
- */
- var $filterEditor = NULL;
-
- /* The categories this filter is made for (e.g. ['users'] or. ['server','workstation']).
- * Since this is set we are able to create user defined filters.
- */
- var $categories = array();
function filter($filename)
{
}
$this->pid= preg_replace("/[^0-9]/", "", microtime(TRUE));
-
- // Instantiate the filter editor.
- if(class_available("filterEditor")){
- $this->filterEditor = new filterEditor($config, $this);
- }
}
$filter= preg_replace("/\\$/", "*".normalizeLdap($this->value)."*", $filter);
}
- $result= array_merge($result, call_user_func(array($backend, 'query'), $this->base, $this->scope, $filter, $attributes, $this->categories, $this->objectStorage));
+ $result= array_merge($result, call_user_func(array($backend, 'query'), $this->base, $this->scope, $filter, $attributes, $this->category, $this->objectStorage));
}
return ($result);
$config["category"], $config["objectStorage"]);
} else {
$result= call_user_func(array($backend, 'query'), $this->base, $this->scope, $filter, $attributes,
- $this->categories, $this->objectStorage);
+ $this->category, $this->objectStorage);
}
foreach ($result as $entry) {
// Build ul/li list
$result.= "<ul class='level2'>";
$result.= "<li><a href='#'>Dummy placeholder</a></li>";
- $result.= "<li><a href='#'>Dummy placeholder</a></li>";
#$result.= "<li$separator><a href='#' onClick='document.getElementById(\"actionmenu\").value= \"".$action['name']."\";mainform.submit();'>$img"._($action['label'])."</a></li>";
# AUTOCOMPLETER and getTextbox
return "<div id='filtermenu'>".$result."</li></ul><div>$script";
}
-
-
- function setCategories($categories)
- {
- if(!is_array($categories) && !empty($categories)){
- $categories = array($categories) ;
- }
- $this->categories = $categories;
- }
}
index d4f972d3da2c5357fdb2f11ed6fe0c502125e3f3..52b5cc0c06fbbcab5e8e9127b48d6c7f541a77a1 100644 (file)
return($message);
}
+ // Display filter editor
+ if(0)
+ return($this->filter->filterEditor->execute());
+
// Some browsers don't have the ability do do scrollable table bodies, filter them
// here.
$switch= false;