44 foreach ($this->providers as $provider) {
45 yield $provider->getNotifications();
90 return (is_array($this->notifications) && count($this->notifications) > 0);
100 if (is_array($this->notifications)) {
102 foreach ($this->notifications as $notification) {
104 foreach ($notification->getNotifications() as $notification) {
105 $count += $notification->getOldAmount();
108 $count += $notification->getOldAmount();
125 if (is_array($this->notifications)) {
127 foreach ($this->notifications as $notification) {
129 foreach ($notification->getNotifications() as $notification) {
130 $count += $notification->getNewAmount();
133 $count += $notification->getNewAmount();
160 foreach ($this->notifications as $notification) {
162 foreach ($notification->getNotifications() as $item) {
164 $identifiers[] = $this->
hash($item->getProviderIdentification()->serialize());
166 $identifiers[] = $item->getProviderIdentification()->serialize();
171 $identifiers[] = $this->
hash($notification->getProviderIdentification()->serialize());
173 $identifiers[] = $notification->getProviderIdentification()->serialize();
Class MainNotificationCollector.
__construct(array $providers)
MetaBarMainCollector constructor.
Class AbstractBaseCollector.
collectOnce()
Runs the Collection of all items from the providers.
getAmountOfOldNotifications()
Returns the sum of all old notifications values in the Standard Notifications.
getAmountOfNewNotifications()
Returns the sum of all new notifications values in the Standard Notifications.
cleanupItemsForUIRepresentation()
getItemsForUIRepresentation()
Class StandardNotificationGroup.
returnNotificationsFromProviders()
Generator yielding the Notifications from the set of providers.
getNotificationsIdentifiersAsArray($hashed=false)
filterItemsByVisibilty(bool $async_only=false)
sortItemsForUIRepresentation()
prepareItemsForUIRepresentation()
getNotifications()
Returns the set of collected informations.