From 958c86f696b4432fc9a6a4f7bea22da69cfbd9fa Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 2 Oct 2008 11:36:39 +0000 Subject: [PATCH] upportDaemon::append -Target was added automatically, added option to avoid this. exi(); git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12593 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 23f6b3518..9b5a6ac83 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -35,6 +35,16 @@ class gosaSupportDaemon protected $use_alternative_xml_parse_method = FALSE; + public function get_host() + { + return($this->s_host); + } + + public function get_port() + { + return($this->i_port); + } + /*! \brief Creates a new gosaSupportDaemon object. @param string Host The Host where the daemon is running on. @param integer Port The port which the daemon use. @@ -932,7 +942,7 @@ class gosaSupportDaemon /* Allows simply appending a new DaemonEvent */ - public function append($event) + public function append($event, $skip_add_mac = FALSE) { if(!($event instanceof DaemonEvent)){ return(FALSE); @@ -961,7 +971,9 @@ class gosaSupportDaemon /* Append an entry for each target */ foreach($targets as $target){ - $data['macaddress'] = $target; + if(!$skip_add_mac){ + $data['macaddress'] = $target; + } $this->send_data($action,$target,$data,$request_answer); if($this->is_error()){ -- 2.30.2