Code

Display HoTPlug references too
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Apr 2008 13:57:28 +0000 (13:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 17 Apr 2008 13:57:28 +0000 (13:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10542 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/references/class_reference.inc

index 6d4f05917d0ced42a518c1401d9b43cc721831d0..eb39838d9c429bcb0d579af7ffd8cd86fc88b2ad 100644 (file)
@@ -37,40 +37,41 @@ class reference extends plugin
        $this->dn= $dn;
 
         /* Fill translation array */
-        $this->obtypes= array(  "gosaAccount" => array(           "text" => _("Generic"),
-                                                          "image" => "penguin.png"),
+        $this->obtypes= array(  
+                               "gosaAccount" => array(    "text" => _("Generic"),
+                                       "image" => "penguin.png"),
                                "posixAccount" => array(   "text" =>_("UNIX"),
-                                                          "image" => "select_user.png"),
-                                "gosaMailAccount" => array("text" => _("Mail"),
-                                                          "image" => "mailto.png"),
-                                "sambaSamAccount" => array("text" => _("Samba"),
-                                                          "image" => "select_winstation.png"),
-                                "sambaAccount" => array(   "text" => _("Samba"),
-                                                          "image" => "select_winstation.png"),
-                                "goFaxAccount" => array(   "text" => _("FAX"),
-                                                          "image" => "fax_small.png"),
-                                "gosaProxyAccount" => array("text" => _("Proxy"),
-                                                          "image" => "select_proxy.png"),
-                                "PureFTPdUser" => array(   "text" => _("FTP"),
-                                                          "image" => "select_proxy.png"),
-                                "posixGroup" => array(     "text" => _("Group"),
-                                                          "image" => "select_groups.png"),
-                                "gosaDepartment" => array( "text" => _("Department"),
-                                                          "image" => "select_department.png"),
-                                "goFonHardware" => array(   "text" => _("Phone"),
-                                                          "image" => "select_phone.png"),
-                                "gosaApplication" => array("text" => _("Application"),
-                                                          "image" => "select_application.png"),
-                                "goServer" => array(      "text" => _("Server"),
-                                                          "image" => "select_server.png"),
-                                "gotoTerminal" => array(   "text" => _("Thin Client"),
-                                                          "image" => "select_terminal.png"),
-                                "gotoWorkstation" => array("text" => _("Workstation"),
-                                                          "image" => "select_workstation.png"),
-                                "gosaGroupOfNames" => array("text" => _("Object group"),
-                                                          "image" => "select_ogroup.png"),
-                                "gotoPrinter" => array(           "text" => _("Printer"),
-                                                          "image" => "select_printer.png"));
+                                       "image" => "select_user.png"),
+                               "gosaMailAccount" => array("text" => _("Mail"),
+                                       "image" => "mailto.png"),
+                               "sambaSamAccount" => array("text" => _("Samba"),
+                                       "image" => "select_winstation.png"),
+                               "sambaAccount" => array(   "text" => _("Samba"),
+                                       "image" => "select_winstation.png"),
+                               "goFaxAccount" => array(   "text" => _("FAX"),
+                                       "image" => "fax_small.png"),
+                               "gosaProxyAccount" => array("text" => _("Proxy"),
+                                       "image" => "select_proxy.png"),
+                               "PureFTPdUser" => array(   "text" => _("FTP"),
+                                       "image" => "select_proxy.png"),
+                               "posixGroup" => array(     "text" => _("Group"),
+                                       "image" => "select_groups.png"),
+                               "gosaDepartment" => array( "text" => _("Department"),
+                                       "image" => "select_department.png"),
+                               "goFonHardware" => array(   "text" => _("Phone"),
+                                       "image" => "select_phone.png"),
+                               "gosaApplication" => array("text" => _("Application"),
+                                               "image" => "select_application.png"),
+                               "goServer" => array(       "text" => _("Server"),
+                                               "image" => "select_server.png"),
+                               "gotoTerminal" => array(   "text" => _("Thin Client"),
+                                               "image" => "select_terminal.png"),
+                               "gotoWorkstation" => array("text" => _("Workstation"),
+                                               "image" => "select_workstation.png"),
+                               "gosaGroupOfNames" => array("text" => _("Object group"),
+                                               "image" => "select_ogroup.png"),
+                               "gotoPrinter" => array(    "text" => _("Printer"),
+                                               "image" => "select_printer.png"));
   }
 
   function execute()
@@ -103,7 +104,7 @@ class reference extends plugin
        $ldap= $this->config->get_ldap_link();
        $ldap->cd($this->config->current['BASE']);
 
-       $ldap->search("(|(member=".LDAP::prepare4filter($this->dn).")(memberUid=".$this->uid."))",array("memberUid","member","cn","description","objectClass"));
+       $ldap->search("(|(gotoHotplugDeviceDN=".LDAP::prepare4filter($this->dn).")(member=".LDAP::prepare4filter($this->dn).")(memberUid=".$this->uid."))",array("memberUid","member","cn","description","objectClass"));
        
        $cycle= array("F5F5F5", "ECECEC");
        $id= 0;