From 3c0ebbb481d7d505fa006f810d03a8dc416575fe Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 19 Sep 2005 18:39:05 +0000 Subject: [PATCH] removed obsolete function --- lam/lib/modules.inc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 1b0f7793..3ac60fe9 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -1152,27 +1152,6 @@ class accountContainer { } } - /** - * This function return ldap attributes - * Syntax is get_attributes($value, $scope) - * $scope = 'objectClass', $value = objectClass return value are all attributes of objectClass - * $scope = 'attribute', $value = attribute returns alle objectClasses which are using the attribute - * - * @todo Obsolete function??? - */ - function get_attributes($value, $scope) { - if ($scope=='attribute' && isset($this->attributes[$value])) return $this->attributes[$value]; - if ($scope=='objectClass') { - $keys = array_keys($this->attributes); - foreach ($keys as $attribute) { - if (isset($this->attributes[$attribute][$value])) $return[$attribute] = $this->attributes[$attribute][$value]; - } - return $return; - } - return 0; - } - - /** * This function returns all LDAP attributes which are used by the given object class. * LDAP attributs which are already in use by another object class are passed as reference.