CB_Notifications_Component
extends BP_Core_Notification_Abstract
in package
Formats Confetti Bits Notifications.
We use this in tandem with BuddyBoss Platform to give us email, web, and push notifications. An absolute godsend, this makes it a million times easier to do that stuff, so we can focus on the actual functionality.
Tags
Table of Contents
Properties
- $instance : mixed
- Set up singleton instance.
Methods
- __construct() : mixed
- Constructor function.
- format_notification() : mixed
- instance() : mixed
- Return the instance kiddos.
- load() : mixed
- Registers notification formats.
- register_anniversary_notifications() : mixed
- register_birthday_notifications() : mixed
- register_cb_activity_notifications() : mixed
- Registers notifications for activity posts.
- register_cb_events_notifications() : mixed
- Registers all our notifications for the transactions component.
- register_cb_requests_notifications() : mixed
- Registers notifications for the requests component.
- register_cb_spot_bonus_notifications() : mixed
- Registers all our notifications for the transactions component.
- register_cb_transactions_notifications() : mixed
- Registers all our notifications for the transactions component.
- register_cb_volunteers_notifications() : mixed
- Registers all our notifications for the transactions component.
- register_group_activity_notifications() : mixed
- register_participation_notifications() : mixed
Properties
$instance
Set up singleton instance.
private
static mixed
$instance
= \null
Methods
__construct()
Constructor function.
public
__construct() : mixed
Start your engines. We're gonna be so notified.
Tags
format_notification()
public
format_notification(mixed $content, mixed $item_id, mixed $secondary_item_id, mixed $total_items, mixed $component_action_name, mixed $component_name, mixed $notification_id, mixed $screen) : mixed
Parameters
- $content : mixed
- $item_id : mixed
- $secondary_item_id : mixed
- $total_items : mixed
- $component_action_name : mixed
- $component_name : mixed
- $notification_id : mixed
- $screen : mixed
instance()
Return the instance kiddos.
public
static instance() : mixed
load()
Registers notification formats.
public
load() : mixed
What's the difference between this and start(), you may ask? Don't. Don't ask me, at least. Best guess? Start() calls load(), and load() actually registers notifications.
Tags
register_anniversary_notifications()
public
register_anniversary_notifications() : mixed
register_birthday_notifications()
public
register_birthday_notifications() : mixed
register_cb_activity_notifications()
Registers notifications for activity posts.
public
register_cb_activity_notifications() : mixed
register_cb_events_notifications()
Registers all our notifications for the transactions component.
public
register_cb_events_notifications() : mixed
register_cb_requests_notifications()
Registers notifications for the requests component.
public
register_cb_requests_notifications() : mixed
register_cb_spot_bonus_notifications()
Registers all our notifications for the transactions component.
public
register_cb_spot_bonus_notifications() : mixed
register_cb_transactions_notifications()
Registers all our notifications for the transactions component.
public
register_cb_transactions_notifications() : mixed
register_cb_volunteers_notifications()
Registers all our notifications for the transactions component.
public
register_cb_volunteers_notifications() : mixed
register_group_activity_notifications()
public
register_group_activity_notifications() : mixed
register_participation_notifications()
public
register_participation_notifications() : mixed