ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 @inheritDoc More...
 
 getNotifications ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\Notification\Provider\AbstractNotificationProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getAdministrativeNotifications ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getNotifications ()
 
 getAdministrativeNotifications ()
 

Protected Attributes

 $access
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\Notification\Provider\AbstractNotificationProvider
 $dic
 
 $if
 
 $notification_factory
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $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 19 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 112 of file ADNProvider.php.

112 : Closure
113 {
114 if ($additional instanceof Closure) {
115 return static function () use ($closure, $additional) : bool {
116 return $additional() && $closure();
117 };
118 }
119
120 return $closure;
121 }
$additional
Definition: goto.php:52

References $additional.

◆ getNotifications()

ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider::getNotifications ( )

@inheritDoc

Implements ILIAS\GlobalScreen\Scope\Notification\Provider\NotificationProvider.

Definition at line 35 of file ADNProvider.php.

35 : array
36 {
37 return [];
38 }

◆ handleDenotation()

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

Definition at line 89 of file ADNProvider.php.

92 : AdministrativeNotification {
93 $settype = static function (int $type, AdministrativeNotification $adn) : AdministrativeNotification {
94 switch ($type) {
96 return $adn->withBreakingDenotation();
98 return $adn->withImportantDenotation();
100 default:
101 return $adn->withNeutralDenotation();
102 }
103 };
104
105 // denotation during event
106 if (!$item->isPermanent() && $item->isDuringEvent()) {
107 return $settype($item->getTypeDuringEvent(), $adn);
108 }
109 return $settype($item->getType(), $adn);
110 }
$type

References 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().

+ Here is the call graph for this function:

Field Documentation

◆ $access

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

Definition at line 24 of file ADNProvider.php.


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