19 declare(strict_types=1);
102 $clone = clone($this);
103 $clone->visiblility_callable = $is_visible;
110 if (isset($this->is_visible_static)) {
114 return $this->is_visible_static =
false;
116 if (is_callable($this->visiblility_callable)) {
119 $value = $callable();
121 return $this->is_visible_static = $value;
124 return $this->is_visible_static =
true;
129 if (is_callable($this->available_callable)) {
140 $clone = clone($this);
141 $clone->available_callable = $is_available;
148 $clone = clone($this);
149 $clone->denotation = self::DENOTATION_NEUTRAL;
156 $clone = clone($this);
157 $clone->denotation = self::DENOTATION_IMPORTANT;
164 $clone = clone($this);
165 $clone->denotation = self::DENOTATION_BREAKING;
172 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)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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 ...