cb-transactions-notifications.php
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.
- cb_transactions_format_notifications() : mixed
- cb_groups_format_notifications() : mixed
- cb_transactions_spot_bonus_notifications() : mixed
- cb_transactions_volunteer_bits_notifications() : mixed
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.
cb_transactions_format_notifications()
cb_transactions_format_notifications([mixed $component_action = '' ][, mixed $args = [] ]) : mixed
Parameters
- $component_action : mixed = ''
- $args : mixed = []
cb_groups_format_notifications()
cb_groups_format_notifications(mixed $component_action[, mixed $args = [] ]) : mixed
Parameters
- $component_action : mixed
- $args : mixed = []
cb_transactions_spot_bonus_notifications()
cb_transactions_spot_bonus_notifications([mixed $args = [] ]) : mixed
Parameters
- $args : mixed = []
cb_transactions_volunteer_bits_notifications()
cb_transactions_volunteer_bits_notifications([mixed $args = [] ]) : mixed
Parameters
- $args : mixed = []