ILIAS  release_8 Revision v8.23
ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider Class Reference

Class ADNProvider. More...

+ Inheritance diagram for ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider:
+ Collaboration diagram for ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider:

Public Member Functions

 __construct (Container $dic)
 
 getNotifications ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Notification\Provider\AbstractNotificationProvider
 __construct (Container $dic)
 
 getAdministrativeNotifications ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 

Protected Attributes

ILIAS GlobalScreen Helper BasicAccessCheckClosures $access
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Notification\Provider\AbstractNotificationProvider
Container $dic
 
IdentificationProviderInterface $if
 
NotificationFactory $notification_factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Private Member Functions

 handleDenotation (ilADNNotification $item, AdministrativeNotification $adn)
 
 combineClosure (Closure $closure, ?Closure $additional=null)
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 

Detailed Description

Class ADNProvider.

Definition at line 35 of file ADNProvider.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ combineClosure()

ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider::combineClosure ( Closure  $closure,
?Closure  $additional = null 
)
private

Definition at line 117 of file ADNProvider.php.

References $additional.

Referenced by ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider\getNotifications().

117  : Closure
118  {
119  if ($additional instanceof Closure) {
120  return static fn (): bool => $additional() && $closure();
121  }
122 
123  return $closure;
124  }
$additional
Definition: goto.php:53
+ Here is the caller graph for this function:

◆ getNotifications()

◆ handleDenotation()

ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider::handleDenotation ( ilADNNotification  $item,
AdministrativeNotification  $adn 
)
private

Definition at line 94 of file ADNProvider.php.

References $type, ilADNNotification\getType(), ilADNNotification\getTypeDuringEvent(), ilADNNotification\isDuringEvent(), ilADNNotification\isPermanent(), ilADNNotification\TYPE_ERROR, ilADNNotification\TYPE_INFO, ilADNNotification\TYPE_WARNING, ILIAS\GlobalScreen\Scope\Notification\Factory\AdministrativeNotification\withBreakingDenotation(), ILIAS\GlobalScreen\Scope\Notification\Factory\AdministrativeNotification\withImportantDenotation(), and ILIAS\GlobalScreen\Scope\Notification\Factory\AdministrativeNotification\withNeutralDenotation().

Referenced by ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider\getNotifications().

97  : AdministrativeNotification {
98  $settype = static function (int $type, AdministrativeNotification $adn): AdministrativeNotification {
99  switch ($type) {
101  return $adn->withBreakingDenotation();
103  return $adn->withImportantDenotation();
105  default:
106  return $adn->withNeutralDenotation();
107  }
108  };
109 
110  // denotation during event
111  if (!$item->isPermanent() && $item->isDuringEvent()) {
112  return $settype($item->getTypeDuringEvent(), $adn);
113  }
114  return $settype($item->getType(), $adn);
115  }
$type
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ILIAS GlobalScreen Helper BasicAccessCheckClosures ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider::$access
protected

Definition at line 37 of file ADNProvider.php.


The documentation for this class was generated from the following file: