From 58e588f095fb166bdb7eacd07d45de0804f01ffb Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 5 Jan 2010 15:31:31 +0000 Subject: [PATCH] Added complete entry getter to listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15058 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_listing.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index bac85ecc9..31a1b3dc1 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -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])) { -- 2.30.2