25 $requestInPushList = [];
26 $requestOutPushList = [];
28 foreach ($events as $event)
31 $eventType = $event->getType();
32 $groupId = $event->getGroupId();
34 $requestWorkgroupEventsList = [
40 if (in_array($eventType, $requestWorkgroupEventsList,
true))
42 $usedRolesList = $event->getUsedRoles();
48 $initiatedByType = $event->getInitiatedByType();
49 switch ($initiatedByType)
52 $requestInPushList[] = [
53 'EVENT' => $eventType,
54 'GROUP_ID' => $groupId,
58 $requestOutPushList[] = [
59 'EVENT' => $eventType,
60 'GROUP_ID' => $groupId,
67 if (!empty($requestInPushList))
72 if (!empty($requestOutPushList))