summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0cc63df)
raw | patch | inline | side by side (parent: 0cc63df)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Aug 2009 09:44:57 +0000 (09:44 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Aug 2009 09:44:57 +0000 (09:44 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14090 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc b/gosa-plugins/goto/addons/goto/events/class_DaemonEvent.inc
index 575626165251341721be9b18f95388cc4bf8fef2..bf9b968d75f452797a7693440c132cbde787e259 100644 (file)
}
+ /*! \brief Returns a complete list of all available events.
+ @return Array Containing $this->get_event_info() for all available events.
+ */
+ static function get_event_types_by_category($categories)
+ {
+ $types= array();
+
+ foreach ($categories as $category) {
+ if (preg_match('/^users$/', $category)) {
+ $types= array_merge($types, DaemonEvent::get_event_types(USER_EVENT));
+ }
+ if (preg_match('/^systems$/', $category)) {
+ $types= array_merge($types, DaemonEvent::get_event_types(SYSTEM_EVENT));
+ }
+ }
+
+ return $types;
+ }
+
+
/*! \brief Returns a complete list of all available events.
@return Array Containing $this->get_event_info() for all available events.
*/