From: hickert Date: Thu, 24 Jan 2008 10:34:14 +0000 (+0000) Subject: Updated deamon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a919d81362299cf92bc8c606d8160f635f6ef6d;p=gosa.git Updated deamon - Supports multiple updates now. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8586 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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."