forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0431129
commit 16b169b
Showing
6 changed files
with
25 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,20 +23,18 @@ | |
use ILIAS\Badge\GlobalScreen\BadgeNotificationProvider; | ||
use ILIAS\Chatroom\GlobalScreen\ChatInvitationNotificationProvider; | ||
use ILIAS\Contact\Provider\ContactNotificationProvider; | ||
use ILIAS\GlobalScreen\Identification\IdentificationInterface; | ||
use ILIAS\GlobalScreen\Scope\Toast\Provider\AbstractToastProvider; | ||
use ILIAS\Notifications\ilNotificationOSDHandler; | ||
use ILIAS\Notifications\Repository\ilNotificationOSDRepository; | ||
use ILIAS\UI\Implementation\Component\Symbol\Icon\Icon; | ||
use ILIAS\UI\Implementation\Component\Symbol\Icon\Standard; | ||
use ILIAS\UI\Implementation\Component\Toast\Toast; | ||
use ilSetting; | ||
use function Sabre\Xml\Deserializer\functionCaller; | ||
|
||
/** | ||
* @author Ingmar Szmais <[email protected]> | ||
*/ | ||
class NotificationToastProvider extends AbstractToastProvider | ||
class NotificationsToastProvider extends AbstractToastProvider | ||
{ | ||
/** | ||
* @inheritDoc | ||
|
@@ -46,14 +44,6 @@ public function getToasts(): array | |
$settings = new ilSetting('notifications'); | ||
$toasts = []; | ||
|
||
if ( | ||
$settings->get('enable_osd', '0') !== '1' || | ||
0 === $this->dic->user()->getId() || | ||
$this->dic->user()->isAnonymous() | ||
) { | ||
return $toasts; | ||
} | ||
|
||
$osd_repository = new ilNotificationOSDRepository($this->dic->database()); | ||
$osd_notification_handler = new ilNotificationOSDHandler($osd_repository); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters