NotificationsUtil Class Reference

Inheritance diagram for NotificationsUtil:
TasksNotificationUtil

Static Public Member Functions

static submit (NotificationMessage $message, NotificationRules $rules)
static getRecentAjaxContentByUser (User $user, $count)
static renderShortenedListViewContent (Notification $notification)
static renderListViewContent (Notification $notification)

Static Protected Member Functions

static getEmailSubject ()
static processNotification (NotificationMessage $message, $type, $users, $allowDuplicates, $isCritical)
static resolveShouldSendEmailIfCritical ()
static sendEmail (Notification $notification)
static resolveAndGetNotifications ($users, $type, NotificationMessage $message, $allowDuplicates)
static resolveToSaveNotification ()

Detailed Description

Helper class to work with notifications.

Definition at line 40 of file NotificationsUtil.php.


Member Function Documentation

static submit ( NotificationMessage message,
NotificationRules rules 
) [static]

Given a NotificationMessage and a NotificationRule submit and process a notification

Parameters:
NotificationMessage $message
NotificationRules $rules
Exceptions:
NotSupportedException 

Definition at line 48 of file NotificationsUtil.php.

static getRecentAjaxContentByUser ( User user,
count 
) [static]

Get the content for displaying recent notifications information via an ajax call.

See also:
HeaderLinksView->renderNotificationsLinkContent()
Parameters:
User $user

Definition at line 67 of file NotificationsUtil.php.

static renderShortenedListViewContent ( Notification notification  )  [static]
Parameters:
Notification $notification
Returns:
string

Definition at line 112 of file NotificationsUtil.php.

static renderListViewContent ( Notification notification  )  [static]
Parameters:
Notification $notification
Returns:
string

Definition at line 139 of file NotificationsUtil.php.

static resolveAndGetNotifications ( users,
type,
NotificationMessage message,
allowDuplicates 
) [static, protected]

Resolve and get notifications

Parameters:
array $users
string $type
NotificationMessage $message
bool $allowDuplicates
Returns:
Notification

Definition at line 241 of file NotificationsUtil.php.

static resolveToSaveNotification (  )  [static, protected]

Resolve to save notification

Returns:
bool

Reimplemented in TasksNotificationUtil.

Definition at line 271 of file NotificationsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Nov 19 07:10:27 2017