Method |
Description |
|
create_insert_array ( array $post, array $pre_create_data = [] ) : array |
Function for preparing the data for insertion in an SQL query
(The service handles insertion) |
|
find_users_for_notification ( array $topic, array $options = [] ) : array |
Find the users who want to receive notifications |
|
get_avatar ( ) |
Get the user's avatar |
|
get_email_template ( ) : string | boolean |
Get email template |
|
get_email_template_variables ( ) : array |
Get email template variables |
|
get_forum ( ) : string |
Get the forum of the notification reference |
|
get_item_id ( array $post ) |
Get the id of the item |
|
get_item_parent_id ( array $post ) |
Get the id of the parent |
|
get_reference ( ) : string |
Get the HTML formatted reference of the notification |
|
get_title ( ) : string |
Get the HTML formatted title of this notification |
|
get_type ( ) : string |
Get notification type name |
|
get_url ( ) : string |
Get the url to this item |
|
is_available ( ) |
Is available |
|
pre_create_insert_array ( array $post, array $notify_users ) : array |
Pre create insert array function
This allows you to perform certain actions, like run a query
and load data, before create_insert_array() is run. The data
returned from this function will be sent to create_insert_array(). |
|
users_to_query ( ) : array |
Users needed to query before this notification can be displayed |
|