1 <?php
3 class filterDEPARTMENT {
5 static function query($base, $scope, $filter, $attributes, $category, $objectStorage= array(""))
6 {
7 $config= session::global_get('config');
8 $ldap= $config->get_ldap_link(TRUE);
10 $result = array();
11 $flag= ($scope == "sub")?GL_SUBSEARCH:0;
12 if(!($flag & GL_SUBSEARCH)){
13 $ldap->cat($base);
14 $result[] = $ldap->fetch();
15 }
17 $result= array_merge($result,filterLDAP::get_list($base, $filter, $attributes, $category, $objectStorage, $flag | GL_SIZELIMIT));
18 return $result;
19 }
20 }
22 ?>