◆ __construct()
◆ populatePage()
      
        
          | ILIAS\Notifications\ilNotificationOSDGUI::populatePage  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 46 of file ilNotificationOSDGUI.php.
References iljQueryUtil\initjQuery(), and ILIAS\Repository\user().
   48         if ($this->
user->isAnonymous() || 0 === $this->
user->getId()) {
    52         $notificationSettings = 
new ilSetting(
'notifications');
    53         if ($notificationSettings->get(
'enable_osd', 
'0') !== 
'1') {
    57         $osdTemplate = 
new ilTemplate(
'tpl.osd_notifications.js', 
true, 
true, 
'components/ILIAS/Notifications');
    59         $osdTemplate->setVariable(
    61             $notificationSettings->get(
'osd_interval', (
string) self::DEFAULT_POLLING_INTERVAL)
    63         $osdTemplate->setVariable(
    65             $notificationSettings->get(
'osd_play_sound') && $this->
user->getPref(
'osd_play_sound') ? 
'true' : 
'false'    70         $this->page->addJavaScript(
'assets/js/notifications.js');
    71         $this->page->addCSS(
'assets/css/osd.css');
    72         $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 
 
 
 
 
◆ $user
  
  
      
        
          | ilObjUser ILIAS\Notifications\ilNotificationOSDGUI::$user | 
         
       
   | 
  
protected   | 
  
 
 
◆ DEFAULT_POLLING_INTERVAL
      
        
          | final const ILIAS\Notifications\ilNotificationOSDGUI::DEFAULT_POLLING_INTERVAL = 60000 | 
        
      
 
 
The documentation for this class was generated from the following file: