Code

Added complete entry getter to listing
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 15:31:31 +0000 (15:31 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 15:31:31 +0000 (15:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15058 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index bac85ecc9c16e230b45fc5f7960223b3f764b46c..31a1b3dc19fe5156945b12f672ca85dbff13fdd5 100644 (file)
@@ -1500,6 +1500,17 @@ class listing {
   }
 
 
+  function getEntry($dn)
+  {
+    foreach ($this->entries as $entry) {
+      if (isset($entry['dn']) && strcasecmp($dn, $entry['dn'])){
+        return $entry;
+      }
+    }
+    return null;
+  }
+
+
   function getType($dn)
   {
     if (isset($this->objectDnMapping[$dn])) {