From 6a919d81362299cf92bc8c606d8160f635f6ef6d Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 24 Jan 2008 10:34:14 +0000 Subject: [PATCH] Updated deamon - Supports multiple updates now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8586 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_gosaSupportDaemon.inc | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 7c15430ec..2e04ab039 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -1,5 +1,26 @@ b_error = FALSE; $this->s_error = ""; - $xml_msg = "
gosa_query_jobdb
@@ -440,12 +460,12 @@ class gosaSupportDaemon @param Array The variables to update. @return Boolean Returns TRUE on success. */ - public function update_entry($id,$entry) + public function update_entries($ids,$entry) { $this->b_error = FALSE; $this->s_error = ""; - if(!is_numeric($id)){ - trigger_error("Requires an integer value as ID parameter."); + if(!is_array($ids)){ + trigger_error("Requires an array as first parameter."); return; } @@ -458,11 +478,18 @@ class gosaSupportDaemon foreach($entry as $name => $entry){ $attr.="<".strtolower($name).">".$entry."\n"; } - - $xml_msg = " + $xml_msg = "
gosa_update_status_jobdb_entry
- ".$id." + + or"; + foreach($ids as $id){ + $xml_msg .= " + eq + ".$id." + "; + } + $xml_msg .= " ".$attr." -- 2.30.2