class email extends messenger_base
Email notification method class This class handles sending emails for notifications
Methods
set_notification_manager(manager $notification_manager)
Set notification manager (required) |
from base | |
bool |
is_enabled_by_default()
Is the method enable by default? |
from base |
array |
get_notified_users(int $notification_type_id, array $options)
Return the list of the users already notified |
from base |
array |
load_notifications(array $options = array())
Load the user's notifications |
from base |
add_to_queue(type_interface $notification)
Add a notification to the queue |
from base | |
update_notification(type_interface $notification, array $data, array $options)
Update a notification |
from base | |
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 |
from base | |
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 |
from base | |
mark_notifications_by_id(int $notification_id, bool|int $time = false, bool $mark_read = true)
Mark notifications read or unread |
from base | |
delete_notifications(string $notification_type_id, int|array $item_id, mixed $parent_id = false, mixed $user_id = false)
Delete a notification |
from base | |
prune_notifications(int $timestamp, bool $only_read = true)
Delete all notifications older than a certain time |
from base | |
purge_notifications(string $notification_type_id)
Purge all notifications of a certain type |
from base | |
__construct(user_loader $user_loader, user $user, config $config, string $phpbb_root_path, string $php_ext)
Notification Method email Constructor |
||
bool |
is_available(type_interface $notification_type = null)
Is this method available for the user? This is checked on the notifications options |
|
string |
get_type()
Get notification method name |
|
notify()
Parse the queue and notify the users |
Details
in base at line 36
public
set_notification_manager(manager $notification_manager)
Set notification manager (required)
in base at line 46
public bool
is_enabled_by_default()
Is the method enable by default?
in base at line 54
public array
get_notified_users(int $notification_type_id, array $options)
Return the list of the users already notified
in base at line 62
public array
load_notifications(array $options = array())
Load the user's notifications
in base at line 76
public
add_to_queue(type_interface $notification)
Add a notification to the queue
in base at line 84
public
update_notification(type_interface $notification, array $data, array $options)
Update a notification
in base at line 91
public
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
public
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
public
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
public
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
public
prune_notifications(int $timestamp, bool $only_read = true)
Delete all notifications older than a certain time
in base at line 126
public
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
at line 40
public
__construct(user_loader $user_loader, user $user, config $config, string $phpbb_root_path, string $php_ext)
Notification Method email Constructor
at line 66
public bool
is_available(type_interface $notification_type = null)
Is this method available for the user? This is checked on the notifications options
at line 53
public string
get_type()
Get notification method name
at line 74
public
notify()
Parse the queue and notify the users