19 declare(strict_types=1);
50 foreach ($osd_notification_handler->getOSDNotificationsForUser(
51 $this->dic->user()->getId(),
53 time() - ($this->dic->http()->request()->getQueryParams()[
'max_age'] ?? time())
55 $type = $notification->getType();
56 $toast = $this->toast_factory
58 $this->
if->identifier((
string) $notification->getId()),
59 $notification->getObject()->title
62 ->withDescription($notification->getObject()->shortDescription)
65 ->withClosedCallable(
static function () use ($osd_repository, $notification) {
66 $osd_repository->deleteOSDNotificationById($notification->getId());
69 foreach ($notification->getObject()->links as
$id => $link) {
70 $toast = $toast->withAdditionToastAction(
71 $this->toast_factory->action(
72 $notification->getId() .
'_link_' .
$id,
74 function () use ($link, $osd_repository, $notification):
void {
75 $osd_repository->deleteOSDNotificationById($notification->getId());
76 $this->dic->ctrl()->redirectToURL($link->getUrl());
92 $name = Standard::BDGA;
95 $name = Standard::CHTA;
98 $name = Standard::CADM;
101 return $this->dic->ui()->factory()->symbol()->icon()->standard(
$name, $type);
const DEFAULT_VANISH_TIME
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getIconByType(string $type)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins