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)
 
 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

 $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()

ILIAS\AdministrativeNotification\GlobalScreen\ADNProvider::__construct ( Container  $dic)

Member Function Documentation

◆ combineClosure()

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

Definition at line 112 of file ADNProvider.php.

References $additional.

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

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
+ Here is the caller graph for this function:

◆ getNotifications()

◆ handleDenotation()

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

Definition at line 89 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().

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
+ Here is the call graph for this function:
+ Here is the caller 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: