summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0066239)
raw | patch | inline | side by side (parent: 0066239)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 15:30:50 +0000 (15:30 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 15:30:50 +0000 (15:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14673 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_listing.inc | patch | blob | history |
index d1436fce5d16987e4f34dde4c23c67ca25d77193..1fcc94ecef7f683903036e2c6c09abb3ab46bf6d 100644 (file)
var $pid;
var $objectTypes= array();
var $objectTypeCount= array();
+ var $objectDnMapping= array();
var $copyPasteHandler= null;
var $snapshotHandler= null;
var $exporter= array();
global $config;
$ui= get_userinfo();
- // Reset object counter
+ // Reset object counter / DN mapping
$this->objectTypeCount= array();
+ $this->objectDnMapping= array();
// Do not do anything if this is not our PID
if(isset($_REQUEST['PID']) && $_REQUEST['PID'] != $this->pid) {
$objectType= $this->getObjectType($this->objectTypes, $classes);
if ($objectType) {
+ $this->objectDnMapping[$dn]= $objectType["objectClass"];
$result= "<img class='center' title='".LDAP::fix($dn)."' src='".$objectType["image"]."'>";
if (!isset($this->objectTypeCount[$objectType['label']])) {
$this->objectTypeCount[$objectType['label']]= 0;
}
$this->objectTypeCount[$objectType['label']]++;
}
+
return $result;
}
return $result;
}
+
+ function getType($dn)
+ {
+ if (isset($this->objectDnMapping[$dn])) {
+ return $this->objectDnMapping[$dn];
+ }
+ return null;
+ }
+
}
?>