summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5732627)
raw | patch | inline | side by side (parent: 5732627)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 09:36:39 +0000 (09:36 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 09:36:39 +0000 (09:36 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9294 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc b/gosa-plugins/goto/addons/gotomasses/class_gotomasses.inc
index 3354a89cda040e2df8d1fae7adf6d80f9e28e0c0..4d609392cc4473cd82ea269c2d9fcc07500e0c1d 100644 (file)
var $divlist = NULL;
var $events = array();
+ var $event_tags = array();
var $sort_by = "Schedule";
var $sort_dir = "down";
$this->config= &$config;
$this->o_queue = new gosaSupportDaemon(TRUE,10);
$this->events = DaemonEvent::get_event_types( USER_EVENT | SYSTEM_EVENT);
+
+ /* Get tags that will be used in queue searches */
+ foreach($this->events['BY_CLASS'] as $evt){
+ if(isset($evt['s_Queued_Action'])){
+ $this->event_tags[] = $evt['s_Queued_Action'];
+ }
+ }
}
public function update_priority($id,$type = "up")
{
if($type == "up"){
- $tmp = $this->o_queue->get_queued_entries(-1,-1,"timestamp DESC");
+ $tmp = $this->o_queue->get_queued_entries($this->event_tags,-1,-1,"timestamp DESC");
}else{
- $tmp = $this->o_queue->get_queued_entries(-1,-1,"timestamp ASC");
+ $tmp = $this->o_queue->get_queued_entries($this->event_tags,-1,-1,"timestamp ASC");
}
$last = array();
foreach($tmp as $entry){
/* Get entries. */
$start = $this->start;
$stop = $this->range;
- $entries = $this->o_queue->get_queued_entries($start,$stop,$sort);
+ $entries = $this->o_queue->get_queued_entries($this->event_tags,$start,$stop,$sort);
if ($this->o_queue->is_error()){
msg_dialog::display(_("Error"), sprintf(_("Cannot load queue entries: %s"), "<br><br>".$this->o_queue->get_error()), ERROR_DIALOG);
}