From: hickert Date: Tue, 4 Mar 2008 09:36:24 +0000 (+0000) Subject: Updated support daemon X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5732627b20dcd460b4eaf31d5779affdaee0e3c5;p=gosa.git Updated support daemon git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9293 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_gosaSupportDaemon.inc b/gosa-core/include/class_gosaSupportDaemon.inc index 96dc1efc3..028c36db9 100644 --- a/gosa-core/include/class_gosaSupportDaemon.inc +++ b/gosa-core/include/class_gosaSupportDaemon.inc @@ -132,15 +132,28 @@ class gosaSupportDaemon /*! \brief Returns an array containing all queued entries. @return Array All queued entries as an array. */ - public function get_queued_entries($from=-1,$to=-1,$sort="timestamp DESC") + public function get_queued_entries($event_types = array("*"),$from=-1,$to=-1,$sort="timestamp DESC") { $this->reset_error(); $ret = array(); + $tags = ""; + foreach($event_types as $type){ + $tags .= "".$type.""; + } + if(count($event_types) > 1){ + $tags = "or".$tags; + } + if(count($event_types)){ + $tags = "".$tags.""; + } + $xml_msg = "
gosa_query_jobdb
GOSA GOSA + ".$tags." + ".$sort.""; if($from != -1 && $to != -1){ $xml_msg.= "