Code

Updated event handling.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Mar 2008 09:20:08 +0000 (09:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Mar 2008 09:20:08 +0000 (09:20 +0000)
-Event are now only visible for a specific type.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9290 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/class_divListGroup.inc
gosa-core/plugins/admin/ogroups/class_divListOGroup.inc
gosa-core/plugins/admin/users/class_divListUsers.inc

index e45f28ab4c3fc13811dea83194b766003eded186..ab32f37de1f38c766f7eb61e090cbe4e4e1dd104 100644 (file)
@@ -194,7 +194,7 @@ class divListGroup extends MultiSelectWindow
 
     /* Add event tag */
     if(class_available("DaemonEvent_notify")){
-      $events  = DaemonEvent::get_event_types();
+      $events  = DaemonEvent::get_event_types( USER_EVENT);
       $event = $events['BY_CLASS']['DaemonEvent_notify'];
       $s.= "..|---|\n";
       $s.= "..|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|trigger_event_DaemonEvent_notify\n";
index 7e8ee5b40aa763418dc97f64e6425c0127a448b4..d57e83166a14fc1969c2bbf32598cfd63f8ed7e5 100644 (file)
@@ -206,7 +206,7 @@ class divListOGroup extends MultiSelectWindow
 
     /* Add notification event */
     if(class_available("DaemonEvent_notify")){
-      $events  = DaemonEvent::get_event_types();
+      $events  = DaemonEvent::get_event_types(USER_EVENT);
       $event = $events['BY_CLASS']['DaemonEvent_notify'];
       $s.= "..|---|\n";
       $s.= "..|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|trigger_event_DaemonEvent_notify\n";
index 53f13ee2831bf2ddc8d10ea9e075bce077432147..ac41162b4356e6e92749aa3c67f190790c379fa7 100644 (file)
@@ -188,7 +188,7 @@ class divListUsers extends MultiSelectWindow
       "&nbsp;"._("Remove")."|"."remove_multiple|\n";
 
     if(class_available("DaemonEvent_notify")){
-      $events  = DaemonEvent::get_event_types();
+      $events  = DaemonEvent::get_event_types(USER_EVENT);
       $event = $events['BY_CLASS']['DaemonEvent_notify'];
       $s.= "..|---|\n";
       $s.= "..|".$event['MenuImage']."&nbsp;".$event['s_Menu_Name']."|trigger_event_DaemonEvent_notify\n";