Notification
class Notification
Class Notification
Constants
| deprecated TYPE_ACTIVITY |
|
| deprecated TYPE_TODO |
|
| deprecated TYPE_MESSAGE |
|
| deprecated TYPES |
|
| deprecated STATUS_READ |
|
| RETURN_TYPE_MODEL_COLLECTION |
|
Methods
Count notifications
Count messages of types $status
Count todos
Send an email with notification template
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
No description
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
Returns the todo notification with added features:
- Lookbook Friend requests
- Pending workflows
get all notifications
Invalidate counts
mark seen notifications by user_id and typ
No description
No description
No description
mark seen notifications by user_id and typ
Send Messenger-Message
Remove an existing notification (by Instance ID and Token) for all users or specific users Using $this->mod->notify()
No description
Send with Vars Object
Details
at line 267
bulk(array $recipientIds, NotificationMessage $message)
No description
at line 628
int|null
count_activity()
Count notifications
at line 567
int|null
count_messages()
Count messages of types $status
at line 587
int|null
count_todos()
Count todos
at line 162
bool
email(mixed $email, string $subject, string $text, bool|string $cc = false, bool|string $bcc = false, array|bool $attachment = false, string $input_format = 'plaintext', array $optional = array())
Send an email with notification template
at line 517
ModelCollection
getActivityNotifications(string[] $status = [], int $user_id = null, int $timestamp = null)
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
at line 543
string
getCountsCacheKey(string $type, null|int $user_id = null)
No description
at line 502
ModelCollection
getMessageNotifications(string[] $status = [], int $user_id = null, int $timestamp = null)
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
at line 530
NotificationCollection
getTodoNotifications(int $user_id = null)
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
at line 391
array
getTodos(array $limitToTypes = [], bool $flat = false)
Returns the todo notification with added features:
- Lookbook Friend requests
- Pending workflows
at line 484
ModelCollection
get_notifications(int $user_id, string[] $status = [], int $timestamp = null, array $type_restriction = [], int|int[] $limit = null)
get all notifications
at line 554
invalidate_counts(int|null $user_id = null)
Invalidate counts
at line 308
markAllSeen(int $user_id = null)
mark seen notifications by user_id and typ
at line 335
markReadBy(int $userId, string $token, string $instanceId)
No description
at line 299
markSeen($notifications, $user_id = null)
No description
at line 349
markSeenBy(int $userId, string $token, string $instanceId)
No description
at line 321
mark_read(int $user_id, string $type = NotificationType::ACTIVITY)
mark seen notifications by user_id and typ
at line 129
bool
messenger(int[]|int $recipient_users, string $subject, string $text, $attachments = [])
Send Messenger-Message
at line 286
int
remove(mixed $instance_id, string $token, mixed $user_id = false)
Remove an existing notification (by Instance ID and Token) for all users or specific users Using $this->mod->notify()
at line 75
bool
send(int|int[] $user_ids, string $subject, $text, bool $is_html = false, array $allowed_sending_methods = array('email', 'messenger'), array $attachment = false)
deprecated
deprecated
No description
at line 51
bool
send_vars(mixed $user_ids, VarsTemplate $vars_object, array $allowed_sending_methods = array('email', 'messenger'), $attachment = false)
deprecated
deprecated
Send with Vars Object