public function formatToGeneralNotification($request, $notifications)
{
$formattedNotificationsData = array();
foreach ($notifications as $notification) {
/* @var $notification Notification */
$formattedNotificationsData[$notification->getLevel()][$notification->getId()] = array('title' => $this->getNotificationTitle($notification), 'text' => $this->getNotificationContents($request, $notification), 'addclass' => $this->getStyleClass($notification), 'notice_icon' => $this->getIconClass($notification), 'styling' => 'jqueryui');
}
return $formattedNotificationsData;
}