19 declare(strict_types=1);
65 yield $provider->getNotifications();
75 yield $provider->getAdministrativeNotifications();
116 return (is_array($this->notifications) && $this->notifications !== []);
133 if (is_array($this->notifications)) {
135 foreach ($this->notifications as $notification) {
137 foreach ($notification->getNotifications() as $s_notification) {
138 if ($s_notification->getOldAmount() > 0) {
142 } elseif ($notification->getOldAmount() > 0) {
160 if (is_array($this->notifications)) {
162 foreach ($this->notifications as $notification) {
164 foreach ($notification->getNotifications() as $s_notification) {
165 if ($s_notification->getNewAmount() > 0) {
169 } elseif ($notification->getNewAmount() > 0) {
203 foreach ($this->notifications as $notification) {
205 foreach ($notification->getNotifications() as $item) {
207 $identifiers[] = $this->
hash($item->getProviderIdentification()->serialize());
209 $identifiers[] = $item->getProviderIdentification()->serialize();
214 $identifiers[] = $this->
hash($notification->getProviderIdentification()->serialize());
216 $identifiers[] = $notification->getProviderIdentification()->serialize();
collectOnce()
Runs the Collection of all items from the providers.
Class MainNotificationCollector.
Class AbstractBaseCollector.
getNotificationsIdentifiersAsArray(bool $hashed=false)
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.
__construct(private array $providers)
MetaBarMainCollector constructor.
cleanupItemsForUIRepresentation()
getItemsForUIRepresentation()
Class StandardNotificationGroup Groups a set of Notification.
returnNotificationsFromProviders()
Generator yielding the Notifications from the set of providers.
filterItemsByVisibilty(bool $async_only=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
sortItemsForUIRepresentation()
returnAdministrativeNotificationsFromProviders()
getAdministrativeNotifications()
prepareItemsForUIRepresentation()
getNotifications()
Returns the set of collected informations.
array $administrative_notifications