From 9f25ebe148751680479423f46c7637493d33f338 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 29 Feb 2008 14:52:07 +0000 Subject: [PATCH] Updated event handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9215 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/admin/systems/class_servGeneric.inc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/class_servGeneric.inc b/gosa-plugins/systems/admin/systems/class_servGeneric.inc index 0aeda21ae..8a2597b06 100644 --- a/gosa-plugins/systems/admin/systems/class_servGeneric.inc +++ b/gosa-plugins/systems/admin/systems/class_servGeneric.inc @@ -415,7 +415,21 @@ class servgeneric extends plugin } if ($activate){ - gosaSupportDaemon::send("gosa_set_activated_for_installation", $this->netConfigDNS->ipHostNumber); + + /* Send installation activation + */ + $events = DaemonEvent::get_event_types(); + $o_queue = new gosaSupportDaemon(); + if(isset($events['BY_CLASS']['DaemonEvent_installation_activation'])){ + $evt = $events['BY_CLASS']['DaemonEvent_installation_activation']; + $tmp = new $evt['CLASS_NAME']($this->config); + $tmp->set_type(TRIGGERED_EVENT); + $tmp->add_targets(array($this->netConfigDNS->macAddress)); + if(!$o_queue->append($tmp)){ + msg_dialog::display(_("Daemon"),sprintf(_("Something went wrong while talking to the daemon: %s."), + $o_queue->get_error()),ERROR_DIALOG); + } + } } } -- 2.30.2