Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Wed Jan 16 07:10:26 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8