5use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
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();
An exception for terminatinating execution or to throw for unit testing.
Class AbstractBaseCollector.
collectOnce()
Runs the Collection of all items from the providers.
Class MainNotificationCollector.
getNotificationsIdentifiersAsArray($hashed=false)
filterItemsByVisibilty(bool $async_only=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.
getItemsForUIRepresentation()
@inheritDoc
__construct(array $providers)
MetaBarMainCollector constructor.
sortItemsForUIRepresentation()
returnNotificationsFromProviders()
Generator yielding the Notifications from the set of providers.
getNotifications()
Returns the set of collected informations.
cleanupItemsForUIRepresentation()
prepareItemsForUIRepresentation()
Class StandardNotificationGroup.
Interface NotificationProvider.