messenger_base
abstract class messenger_base extends base
Abstract notification method handling email and jabber notifications using the phpBB messenger.
Properties
protected manager | $notification_manager | from base | |
protected array | $queue | Queue of messages to be sent |
from base |
protected user_loader | $user_loader | ||
protected string | $phpbb_root_path | ||
protected string | $php_ext |
Methods
Return the list of the users already notified
Update a notification
{@inheritdoc
Mark notifications read or unread from a parent identifier
Mark notifications read or unread
Delete a notification
Delete all notifications older than a certain time
Purge all notifications of a certain type
Notification Method Board Constructor
Is this method available for the user? This is checked on the notifications options
Notify using phpBB messenger
Details
in
base at line 36
set_notification_manager(manager $notification_manager)
Set notification manager (required)
in
base at line 46
bool
is_enabled_by_default()
Is the method enable by default?
in
base at line 54
array
get_notified_users(int $notification_type_id, array $options)
Return the list of the users already notified
in
base at line 62
array
load_notifications(array $options = array())
Load the user's notifications
in
base at line 76
add_to_queue(type_interface $notification)
Add a notification to the queue
in
base at line 84
update_notification(type_interface $notification, array $data, array $options)
Update a notification
in
base at line 91
mark_notifications(bool|string $notification_type_id, bool|int|array $item_id, bool|int|array $user_id, bool|int $time = false, bool $mark_read = true)
{@inheritdoc
in
base at line 98
mark_notifications_by_parent(string $notification_type_id, bool|int|array $item_parent_id, bool|int|array $user_id, bool|int $time = false, bool $mark_read = true)
Mark notifications read or unread from a parent identifier
in
base at line 105
mark_notifications_by_id(int $notification_id, bool|int $time = false, bool $mark_read = true)
Mark notifications read or unread
in
base at line 112
delete_notifications(string $notification_type_id, int|array $item_id, mixed $parent_id = false, mixed $user_id = false)
Delete a notification
in
base at line 119
prune_notifications(int $timestamp, bool $only_read = true)
Delete all notifications older than a certain time
in
base at line 126
purge_notifications(string $notification_type_id)
Purge all notifications of a certain type
This should be called when an extension which has notification types is purged so that all those notifications are removed
in
base at line 133
protected
empty_queue()
Empty the queue
at line 40
__construct(user_loader $user_loader, string $phpbb_root_path, string $php_ext)
Notification Method Board Constructor
at line 55
is_available(type_interface $notification_type = null)
Is this method available for the user? This is checked on the notifications options
at line 68
protected null
notify_using_messenger(int $notify_method, string $template_dir_prefix = '')
Notify using phpBB messenger