summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3adcf1e)
raw | patch | inline | side by side (parent: 3adcf1e)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 13:30:38 +0000 (13:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 4 Mar 2008 13:30:38 +0000 (13:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9317 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationGeneric.inc
index be0483873f26a03f52962ce48a3033e59747c073..5818f8f6cadec05a9f389ea3718f2fc1fca1ced2 100644 (file)
}
/* Check if we have an DaemonEvent for this action */
- if(class_available("DaemonEvent_".$action)){
- $events = DaemonEvent::get_event_types(SYSTEM_EVENT);
- if(isset($events['BY_CLASS']["DaemonEvent_".$action])){
- $evt = $events['BY_CLASS']["DaemonEvent_".$action];
+ if(class_available("DaemonEvent")){
+ $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
+ if(isset($events['TRIGGERED']["DaemonEvent_".$action])){
+ $evt = $events['TRIGGERED']["DaemonEvent_".$action];
$tmp = new $evt['CLASS_NAME']($this->config);
$tmp->add_targets(array($this->netConfigDNS->macAddress));
$tmp->set_type(TRIGGERED_EVENT);
$this->netConfigDNS->save();
show_ldap_error($ldap->get_error(), sprintf(_("Saving of system workstation/generic with dn '%s' failed."),$this->dn));
- if ($activate){
+ if ($activate && class_available("DaemonEvent")){
/* Send installation activation
*/
- $events = DaemonEvent::get_event_types(SYSTEM_EVENT);
+ $events = DaemonEvent::get_event_types(SYSTEM_EVENT | HIDDEN_EVENT);
$o_queue = new gosaSupportDaemon();
- if(isset($events['BY_CLASS']['DaemonEvent_installation_activation'])){
- $evt = $events['BY_CLASS']['DaemonEvent_installation_activation'];
+ if(isset($events['TRIGGERED']['DaemonEvent_installation_activation'])){
+ $evt = $events['TRIGGERED']['DaemonEvent_installation_activation'];
$tmp = new $evt['CLASS_NAME']($this->config);
$tmp->set_type(TRIGGERED_EVENT);
$tmp->add_targets(array($this->netConfigDNS->macAddress));
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index be430f76bb911407fd3f8cf59a28856c8c32b4ce..2944e8c44bb83325cc5be18234c7b6265e7d28a8 100644 (file)
$this->handle_post_events("modify");
/* Check if LDAP server has changed */
- if ($ldap_changed){
- $events = DaemonEvent::get_event_types(SYSETEM_EVENT);
+ if ($ldap_changed && class_available("DaemonEvent")){
+ $events = DaemonEvent::get_event_types(SYSETEM_EVENT | HIDDEN_EVENT);
$o_queue = new gosaSupportDaemon();
- if(isset($events['BY_CLASS']['DaemonEvent_reload_ldap_config'])){
- $evt = $events['BY_CLASS']['DaemonEvent_reload_ldap_config'];
+ if(isset($events['TRIGGERED']['DaemonEvent_reload_ldap_config'])){
+ $evt = $events['TRIGGERED']['DaemonEvent_reload_ldap_config'];
$tmp = new $evt['CLASS_NAME']($this->config);
$tmp->set_type(TRIGGERED_EVENT);
$tmp->add_targets(array($this->parent->by_object['workgeneric']->netConfigDNS->macAddress));