Code

Added new function to gosaSupportDaemon base class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Sep 2008 08:06:56 +0000 (08:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 4 Sep 2008 08:06:56 +0000 (08:06 +0000)
-We are now able to request a list of servers that support a given type of module.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12360 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 240d139d37773a44ed650259308df5b62595ec42..979a545503407dc7325043901b852e83fc26071a 100644 (file)
@@ -98,7 +98,21 @@ class gosaSupportDaemon
   {
     return($this->is_connected);
   }
-  
+
+  /*! \brief  */
+  public function get_hosts_with_module($mod)
+  {
+    $data = array("module_name" => $mod);
+    $res = $this->send_data("gosa_get_hosts_with_module",$this->s_host.":".$this->i_port,$data,TRUE);
+    $hosts = array();
+    if(isset($res['XML'][0]['HOST'])){
+      foreach($res['XML'][0]['HOST'] as $entry){
+        $hosts [] = $entry['VALUE'];
+      }
+    }
+    return($hosts);
+  }
 
 
   /*! \brief  Disconnect from gosa daemon.