Method |
Description |
|
add_responders ( mixed $post ) |
Add responders to the notification |
|
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 $post, 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_item_id ( array $post ) |
Get the id of the item |
|
get_item_parent_id ( array $post ) |
Get the id of the parent |
|
get_redirect_url ( ) |
{inheritDoc} |
|
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(). |
|
trim_user_ary ( array $users ) : array |
Trim the user array passed down to 3 users if the array contains
more than 4 users. |
|
users_to_query ( ) : array |
Users needed to query before this notification can be displayed |
|