예제 #1
0
 /**
  * Pop all notifications from NQ. Get the type for use with CSS.
  * @return Properly styled notifications.
  */
 public function display()
 {
     $notifications = \NQ::popAll('appsync');
     $tags = array();
     foreach ($notifications as $notification) {
         $type = self::getType($notification);
         $tags['NOTIFICATIONS'][][$type] = $notification->toString();
     }
     $content = \PHPWS_Template::process($tags, 'appsync', 'notification.tpl');
     return $content;
 }
예제 #2
0
 public function popNotifications()
 {
     $this->notifications = \NQ::popAll('hms');
 }
예제 #3
0
 public function popNotifications()
 {
     $this->notifications = NQ::popAll('faxmaster');
 }