From: cajus Date: Tue, 5 Jan 2010 15:31:31 +0000 (+0000) Subject: Added complete entry getter to listing X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=58e588f095fb166bdb7eacd07d45de0804f01ffb;p=gosa.git Added complete entry getter to listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15058 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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])) {