Project

General

Profile

Actions

Feature proposal #7266

open

CBLib: Implement Notification API

Added by krileon over 6 years ago. Updated 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
04 September 2018
Due date:
% Done:

0%

Estimated time:

Description

This initially should just be for Emails to replace existing cbNotification API, but should likely support additional types (e.g. PM). Proposed structure as follows.

CBLib\Notification
CBLib\Notification\Email

Usage as follows.

Application::Notification()->send( to, from, subject, message )

Specify type in the constructor (e.g. Application::Notification( 'pm' )).

The problem is PMs are from a plugin while Emails are core. So it needs to be able to call plugin notification types without being dependent on those plugins (e.g. if notification type doesn't exist do nothing). This will likely rely on #5209 existing to call something like Application::PM->send( to, from, subject, message ) when using Application::Notification( 'pm' ).

Actions #1

Updated by beat almost 2 years ago

  • Target version changed from CB 2.8 to CB 2.8.1
Actions #2

Updated by beat over 1 year ago

  • Target version changed from CB 2.8.1 to CB 2.8.2
Actions #3

Updated by beat about 1 year ago

  • Target version changed from CB 2.8.2 to CB 2.9.0
Actions #4

Updated by beat about 1 year ago

  • Target version changed from CB 2.9.0 to CB 2.9.2
Actions #5

Updated by beat 6 months ago

  • Target version changed from CB 2.9.2 to CB 2.9.3
Actions #6

Updated by beat 4 months ago

  • Target version changed from CB 2.9.3 to CB 2.9.4
Actions

Also available in: Atom PDF