PKPNotificationOperationManager::formatToGeneralNotification PHP Method

formatToGeneralNotification() public method

General notification data formating.
public formatToGeneralNotification ( $request, array $notifications ) : array
$request PKPRequest
$notifications array
return array
    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;
    }