Notifications
Table of Contents
Functions
- cb_groups_activity_notifications() : mixed
- Sends a notification to members of a group when someone posts.
- cb_transactions_notifications() : int|bool
- Sends transaction notifications based on component action.
Functions
cb_groups_activity_notifications()
Sends a notification to members of a group when someone posts.
cb_groups_activity_notifications(string $content, int $user_id, int $group_id, int $activity_id) : mixed
Parameters
- $content : string
-
The notification content.
- $user_id : int
-
The ID of the user who is posting in the group.
- $group_id : int
-
The group ID.
- $activity_id : int
-
The ID of the activity post.
Tags
cb_transactions_notifications()
Sends transaction notifications based on component action.
cb_transactions_notifications([array<string|int, mixed> $data = [] ]) : int|bool
Parameters
- $data : array<string|int, mixed> = []
-
{ An associative array of data received from the CB_Transactions_Transaction::save() method.
@see CB_Transactions_Transaction::save().
}
Tags
Return values
int|bool —Notification ID on success, false on failure.