From e2ab4a79727255b29caad6fd52aa65dfdb202338 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 17 Mar 2010 14:48:04 +0000 Subject: [PATCH] Added dep filter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16784 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../departments/class_filterDEPARTMENT.inc | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gosa-core/plugins/admin/departments/class_filterDEPARTMENT.inc diff --git a/gosa-core/plugins/admin/departments/class_filterDEPARTMENT.inc b/gosa-core/plugins/admin/departments/class_filterDEPARTMENT.inc new file mode 100644 index 000000000..024b3ae2a --- /dev/null +++ b/gosa-core/plugins/admin/departments/class_filterDEPARTMENT.inc @@ -0,0 +1,22 @@ +get_ldap_link(TRUE); + + $result = array(); + $flag= ($scope == "sub")?GL_SUBSEARCH:0; + if(!($flag & GL_SUBSEARCH)){ + $ldap->cat($base); + $result[] = $ldap->fetch(); + } + + $result= array_merge($result,filterLDAP::get_list($base, $filter, $attributes, $category, $objectStorage, $flag | GL_SIZELIMIT)); + return $result; + } +} + +?> -- 2.30.2