◆ __construct()
◆ populatePage()
ILIAS\Notifications\ilNotificationOSDGUI::populatePage |
( |
| ) |
|
Definition at line 52 of file ilNotificationOSDGUI.php.
References iljQueryUtil\initjQuery(), ilPlayerUtil\initMediaElementJs(), and ILIAS\Repository\user().
54 if ($this->
user->isAnonymous() || 0 === $this->
user->getId()) {
58 $notificationSettings =
new ilSetting(
'notifications');
60 if ($notificationSettings->get(
'enable_osd',
'0') ===
'1') {
61 $osdTemplate =
new ilTemplate(
'tpl.osd_notifications.js',
true,
true,
'Services/Notifications');
63 $osdTemplate->setVariable(
65 $notificationSettings->get(
'osd_interval', (
string) self::DEFAULT_POLLING_INTERVAL)
67 $osdTemplate->setVariable(
69 $notificationSettings->get(
'osd_play_sound') && $this->
user->getPref(
'osd_play_sound') ?
'true' :
'false' 75 $this->page->addJavaScript(
'Services/Notifications/templates/default/notifications.js');
76 $this->page->addCSS(
'Services/Notifications/templates/default/osd.css');
77 $this->page->addOnLoadCode($osdTemplate->get());
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
static initMediaElementJs(ilGlobalTemplateInterface $a_tpl=null)
Init mediaelement.js scripts.
◆ $lng
ilLanguage ILIAS\Notifications\ilNotificationOSDGUI::$lng |
|
protected |
◆ $page
◆ $user
ilObjUser ILIAS\Notifications\ilNotificationOSDGUI::$user |
|
protected |
◆ DEFAULT_POLLING_INTERVAL
const ILIAS\Notifications\ilNotificationOSDGUI::DEFAULT_POLLING_INTERVAL = 60000 |
The documentation for this class was generated from the following file: