From: hickert Date: Tue, 28 Jun 2011 12:37:39 +0000 (+0000) Subject: Added a method which checks if a given attribute is managed by the dyngroup or not. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=69c701ca4cd7811bccff3f5555e275030799b9ff;p=gosa.git Added a method which checks if a given attribute is managed by the dyngroup or not. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20925 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc b/gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc index 2c02078f1..93b122213 100644 --- a/gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc +++ b/gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc @@ -96,6 +96,19 @@ class DynamicLdapGroup extends plugin } + /*!\brief Checks whether the given attribute is managed by this dyngroup extension or not. + */ + function isAttributeDynamic($attr) + { + if($this->is_account){ + foreach($this->labeledURIparsed as $uri){ + if($uri['attr'] == $uri) return(TRUE); + } + } + return(FALSE); + } + + public function check () { $messages = plugin::check();