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

TasksNotificationUtil Class Reference

Inheritance diagram for TasksNotificationUtil:
NotificationsUtil

Static Public Member Functions

static submitTaskNotificationMessage (Task $task, $action, User $relatedUser=null, Comment $comment=null)
static resolvePeopleToSendNotification (Task $task, $action, User $relatedUser=null)
static getTaskEmailSubject (Task $task, $action)
static getEmailMessageContent (Task $task, $action, User $relatedUser=null)
static getEmailMessageContentSecondPart ($action, Comment $comment=null)

Data Fields

const TASK_NEW = 'TaskNew'
const TASK_STATUS_BECOMES_AWAITING_ACCEPTANCE = 'TaskStatusBecomesAwaitingAcceptance'
const TASK_STATUS_BECOMES_COMPLETED = 'TaskStatusBecomesCompleted'
const TASK_STATUS_BECOMES_REJECTED = 'TaskStatusBecomesAccepted'
const TASK_OWNER_CHANGE = 'TaskOwnerChange'
const TASK_NEW_COMMENT = 'TaskNewComment'

Static Protected Member Functions

static processTaskNotification (NotificationMessage $message, TaskNotificationRules $rule, $action)
static getNotificationMessageByAction (Task $task, $action, User $relatedUser=null, Comment $comment=null)
static sendTaskEmail (Notification $notification, TaskNotificationRules $rule, $action)
static makeEmailMessage (Notification $notification, TaskNotificationRules $rule, $action)
static makeEmailContent (Notification $notification)
static makeSender ()
static makeRecipient (Notification $notification)
static resolveToSaveNotification ()

Detailed Description

Helper class for working with tasks notification

Definition at line 40 of file TasksNotificationUtil.php.


Member Function Documentation

static submitTaskNotificationMessage ( Task task,
action,
User relatedUser = null,
Comment comment = null 
) [static]

Submit task notification message

Parameters:
Task $task
string $action
null|User $relatedUser, the user associated with the task notification. In case of
null|Comment $comment owner change it would be previous owner, in case of comment, it would be the user making the comment

Definition at line 63 of file TasksNotificationUtil.php.

static processTaskNotification ( NotificationMessage message,
TaskNotificationRules rule,
action 
) [static, protected]

Process task notification

Parameters:
NotificationMessage $message
TaskNotificationRules $rule
string $action

Definition at line 86 of file TasksNotificationUtil.php.

static getNotificationMessageByAction ( Task task,
action,
User relatedUser = null,
Comment comment = null 
) [static, protected]

Gets notification message by action

Parameters:
Task $task
$action 
User $relatedUser
Comment $comment
Returns:
NotificationMessage

Definition at line 114 of file TasksNotificationUtil.php.

static resolvePeopleToSendNotification ( Task task,
action,
User relatedUser = null 
) [static]

Gets notification subscribers

Parameters:
Task $task
$action 
User $relatedUser
Returns:
array

Definition at line 145 of file TasksNotificationUtil.php.

static getTaskEmailSubject ( Task task,
action 
) [static]

Gets email subject for the notification

Parameters:
Task $task
$action 
Returns:
string

Definition at line 193 of file TasksNotificationUtil.php.

static getEmailMessageContent ( Task task,
action,
User relatedUser = null 
) [static]

Gets email message for the notification

Parameters:
Task $task
$action 
User $relatedUser
Returns:
string

Definition at line 236 of file TasksNotificationUtil.php.

static getEmailMessageContentSecondPart ( action,
Comment comment = null 
) [static]
Parameters:
$action 
Comment $comment
Returns:
string

Definition at line 280 of file TasksNotificationUtil.php.

static sendTaskEmail ( Notification notification,
TaskNotificationRules rule,
action 
) [static, protected]

Send task email

Parameters:
Notification $notification
TaskNotificationRules $rule
string $action

Definition at line 295 of file TasksNotificationUtil.php.

static makeEmailMessage ( Notification notification,
TaskNotificationRules rule,
action 
) [static, protected]
Parameters:
Notification $notification
TaskNotificationRules $rule
string $action
Returns:
EmailMessage

Definition at line 324 of file TasksNotificationUtil.php.

static makeEmailContent ( Notification notification  )  [static, protected]
Parameters:
Notification $notification
Returns:
EmailMessageContent

Definition at line 338 of file TasksNotificationUtil.php.

static makeSender (  )  [static, protected]
Returns:
EmailMessageSender

Definition at line 353 of file TasksNotificationUtil.php.

static makeRecipient ( Notification notification  )  [static, protected]
Parameters:
Notification $notification
Returns:
EmailMessageRecipient

Definition at line 366 of file TasksNotificationUtil.php.

static resolveToSaveNotification (  )  [static, protected]

Resolve to save notification

Returns:
bool

Reimplemented from NotificationsUtil.

Definition at line 380 of file TasksNotificationUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Jan 23 07:10:29 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