Code

Added a method which checks if a given attribute is managed by the dyngroup or not.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Jun 2011 12:37:39 +0000 (12:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Jun 2011 12:37:39 +0000 (12:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20925 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/dyngroup/class_DynamicLdapGroup.inc

index 2c02078f19ddbcb15e9548686ef70c76c33bc9be..93b1222133ea7172c9c9a7256219721982c04234 100644 (file)
@@ -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();