From 20cd6ad4cb9f1960fc5ee5346963713280f8d1f2 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 4 Sep 2008 08:06:56 +0000 Subject: [PATCH] Added new function to gosaSupportDaemon base class -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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 240d139d3..979a54550 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -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. -- 2.30.2