3 declare(strict_types=1);
100 $clone = clone($this);
101 $clone->visiblility_callable = $is_visible;
108 if (isset($this->is_visible_static)) {
112 return $this->is_visible_static =
false;
114 if (is_callable($this->visiblility_callable)) {
117 $value = $callable();
119 return $this->is_visible_static = $value;
122 return $this->is_visible_static =
true;
127 if (is_callable($this->available_callable)) {
138 $clone = clone($this);
139 $clone->available_callable = $is_available;
146 $clone = clone($this);
147 $clone->denotation = self::DENOTATION_NEUTRAL;
154 $clone = clone($this);
155 $clone->denotation = self::DENOTATION_IMPORTANT;
162 $clone = clone($this);
163 $clone->denotation = self::DENOTATION_BREAKING;
170 return $this->denotation ?? self::DENOTATION_NEUTRAL;
withVisibilityCallable(callable $is_visible)
Class AbstractBaseNotification.
const DENOTATION_BREAKING
Interface IdentificationInterface.
bool $is_always_available
const DENOTATION_IMPORTANT
Closure $available_callable
IdentificationInterface $provider_identification
withImportantDenotation()
Class AdministrativeNotificationRenderer.
getRenderer(UIFactory $factory)
withSummary(string $summary)
withAvailableCallable(callable $is_available)
Closure $visiblility_callable
Interface NotificationRenderer Every Notification should have a renderer, if you won't provide on in ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...