From: hickert Date: Tue, 4 Mar 2008 09:20:27 +0000 (+0000) Subject: Updated event handling. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d19537f5cfd129b5a78edfa38a17d9a202235662;p=gosa.git Updated event handling. -Events are now only visible for a specific type. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9291 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_divListSystem.inc b/gosa-plugins/systems/admin/systems/class_divListSystem.inc index 909cc65d8..5c5a9703f 100644 --- a/gosa-plugins/systems/admin/systems/class_divListSystem.inc +++ b/gosa-plugins/systems/admin/systems/class_divListSystem.inc @@ -199,7 +199,7 @@ class divListSystem extends MultiSelectWindow " "._("Component")."|"."newsystem_component|\n"; } - $events = DaemonEvent::get_event_types(); + $events = DaemonEvent::get_event_types(SYSTEM_EVENT); $s.= "..|". " "._("Trigger action")."|\n"; foreach($events['BY_CLASS'] as $name => $event){ diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 8a2597b06..4e75bb711 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -117,7 +117,7 @@ class servgeneric extends plugin /* Check if we have an DaemonEvent for this action */ if(class_available("DaemonEvent_".$action)){ - $events = DaemonEvent::get_event_types(); + $events = DaemonEvent::get_event_types(SYSTEM_EVENT); if(isset($events['BY_CLASS']["DaemonEvent_".$action])){ $evt = $events['BY_CLASS']["DaemonEvent_".$action]; $tmp = new $evt['CLASS_NAME']($this->config); @@ -418,7 +418,7 @@ class servgeneric extends plugin /* Send installation activation */ - $events = DaemonEvent::get_event_types(); + $events = DaemonEvent::get_event_types(SYSTEM_EVENT); $o_queue = new gosaSupportDaemon(); if(isset($events['BY_CLASS']['DaemonEvent_installation_activation'])){ $evt = $events['BY_CLASS']['DaemonEvent_installation_activation']; diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index b352c54fb..066503860 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -515,7 +515,7 @@ class systems extends plugin $mac[]= $attrs['macAddress'][0]; } } - $events = DaemonEvent::get_event_types(); + $events = DaemonEvent::get_event_types(SYSTEM_EVENT); $type = preg_replace("/^[a-z]*_event_/","",$s_action); /* Prepare event to be added @@ -879,7 +879,7 @@ class systems extends plugin /* Get macAddress to be able to an installation event */ if($this->systab instanceof ArpNewDeviceTabs || session::is_set('SelectedSystemType')){ - $events = DaemonEvent::get_event_types(); + $events = DaemonEvent::get_event_types(SYSTEM_EVENT); /* Get mac of currently edited entry */ $mac = "";