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
Add a Notification to System Using $this->mod->notify()
Add a Notification to System with Vars Using $this->mod->notify_vars()
Count notifications
Count messages
Count todos
Send an email with notification template
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
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
No description
Get mail Template
Get single notification by token to discover information before notify
get all notifications
Invalidate counts
mark seen notifications by user_id and typ
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 333
add(mixed $instance_id, int|int[] $user_id, string $token, string $status = NotificationState::NEW, string $subject = null, string $plaintext = null, string $html = null, string $link = null, string $icon = 'icon-info', string $type = NotificationType::ACTIVITY)
deprecated
deprecated
Add a Notification to System Using $this->mod->notify()
at line 293
add_vars(mixed $instance_id, mixed $user_id, string $token, $status, VarsTemplate $vars, mixed $link = null, string $icon = null, string $type = NotificationType::ACTIVITY)
Add a Notification to System with Vars Using $this->mod->notify_vars()
at line 803
int
count_activity()
Count notifications
at line 742
int|mixed
count_messages()
Count messages
at line 761
int|mixed
count_todos()
Count todos
at line 158
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 701
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 686
ModelCollection
getMessageNotifications(int $user_id = null, string[] $status = [], int $timestamp = null)
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
at line 714
ModelCollection
getTodoNotifications(int $user_id = null)
This function returns a scoped but unloaded collection. You can apply limit and additional scopes
at line 592
array
getTodos()
Returns the todo notification with added features:
- Lookbook Friend requests
- Pending workflows
at line 827
get_attachment_by_file($file)
No description
at line 247
xelos_global_template
get_mail_template(string $format = 'html')
Get mail Template
at line 580
Notification
get_notification(mixed $instance_id, mixed $user_id, mixed $token)
Get single notification by token to discover information before notify
at line 668
ModelCollection
get_notifications(int $user_id, string[] $status = [], int $timestamp = null, array $type_restriction = [], int|int[] $limit = null)
get all notifications
at line 726
invalidate_counts(int $user_id = null)
Invalidate counts
at line 561
bool
mark(Notification[] $notifications, mixed $status)
mark any status by Notification
at line 545
bool
mark_read(int $user_id, string $type = NotificationType::ACTIVITY)
mark seen notifications by user_id and typ
at line 529
bool
mark_seen(int $user_id)
mark seen notifications by user_id and typ
at line 128
messenger(mixed $recipient_users, mixed $subject, mixed $text)
Send Messenger-Message
at line 434
publish(NotificationMessage $notificationMessage)
Add Notificaton Message to Queue
at line 509
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 74
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 50
bool
send_vars(mixed $user_ids, VarsTemplate $vars_object, array $allowed_sending_methods = array('email', 'messenger'), $attachment = false)
Send with Vars Object