|
| | __construct (Elgg_Notifications_SubscriptionsService $subscriptions, Elgg_Queue_Queue $queue, Elgg_PluginHooksService $hooks, Elgg_Access $access) |
| | Constructor. More...
|
| |
| | registerEvent ($type, $subtype, array $actions=array()) |
| |
| | unregisterEvent ($type, $subtype) |
| |
| | getEvents () |
| | @access private More...
|
| |
| | registerMethod ($name) |
| |
| | unregisterMethod ($name) |
| |
| | getMethods () |
| | @access private More...
|
| |
| | enqueueEvent ($action, $type, $object) |
| | Add a notification event to the queue. More...
|
| |
| | processQueue ($stopTime) |
| | Pull notification events from queue until stop time is reached. More...
|
| |
| | registerDeprecatedHandler ($method, $handler) |
| | Register a deprecated notification handler. More...
|
| |
| | getDeprecatedHandler ($method) |
| | Get a deprecated notification handler callback. More...
|
| |
| | getMethodsAsDeprecatedGlobal () |
| | Provides a way to incrementally wean Elgg's notifications code from the global $NOTIFICATION_HANDLERS. More...
|
| |
| | setDeprecatedNotificationSubject ($type, $subtype, $subject) |
| | Set message subject for deprecated notification code. More...
|
| |
Definition at line 12 of file NotificationsService.php.
◆ __construct()
◆ enqueueEvent()
| Elgg_Notifications_NotificationsService::enqueueEvent |
( |
|
$action, |
|
|
|
$type, |
|
|
|
$object |
|
) |
| |
Add a notification event to the queue.
- Parameters
-
| string | $action | Action name |
| string | $type | Type of the object of the action |
| ElggData | $object | The object of the action |
- Returns
- void @access private
Definition at line 135 of file NotificationsService.php.
◆ existsDeprecatedNotificationOverride()
◆ getDeprecatedHandler()
| Elgg_Notifications_NotificationsService::getDeprecatedHandler |
( |
|
$method | ) |
|
Get a deprecated notification handler callback.
- Parameters
-
- Returns
- callback|null
Definition at line 322 of file NotificationsService.php.
◆ getDeprecatedNotificationBody()
◆ getDeprecatedNotificationSubject()
| Elgg_Notifications_NotificationsService::getDeprecatedNotificationSubject |
( |
|
$type, |
|
|
|
$subtype |
|
) |
| |
|
protected |
Get the deprecated subject.
- Parameters
-
| string | $type | Entity type |
| string | $subtype | Entity subtype |
- Returns
- string
Definition at line 401 of file NotificationsService.php.
◆ getEvents()
| Elgg_Notifications_NotificationsService::getEvents |
( |
| ) |
|
◆ getMethods()
| Elgg_Notifications_NotificationsService::getMethods |
( |
| ) |
|
◆ getMethodsAsDeprecatedGlobal()
| Elgg_Notifications_NotificationsService::getMethodsAsDeprecatedGlobal |
( |
| ) |
|
Provides a way to incrementally wean Elgg's notifications code from the global $NOTIFICATION_HANDLERS.
- Returns
- array
Definition at line 336 of file NotificationsService.php.
◆ processQueue()
| Elgg_Notifications_NotificationsService::processQueue |
( |
|
$stopTime | ) |
|
Pull notification events from queue until stop time is reached.
- Parameters
-
| int | $stopTime | The Unix time to stop sending notifications |
- Returns
- int The number of notification events handled @access private
Definition at line 168 of file NotificationsService.php.
◆ registerDeprecatedHandler()
| Elgg_Notifications_NotificationsService::registerDeprecatedHandler |
( |
|
$method, |
|
|
|
$handler |
|
) |
| |
Register a deprecated notification handler.
- Parameters
-
| string | $method | Method name |
| string | $handler | Handler callback |
- Returns
- void
Definition at line 312 of file NotificationsService.php.
◆ registerEvent()
| Elgg_Notifications_NotificationsService::registerEvent |
( |
|
$type, |
|
|
|
$subtype, |
|
|
array |
$actions = array() |
|
) |
| |
◆ registerMethod()
| Elgg_Notifications_NotificationsService::registerMethod |
( |
|
$name | ) |
|
◆ sendNotification()
Send a notification to a subscriber.
- Parameters
-
| Elgg_Notifications_Event | $event | The notification event |
| int | $guid | The guid of the subscriber |
| string | $method | The notification method |
- Returns
- bool @access private
Definition at line 244 of file NotificationsService.php.
◆ sendNotifications()
| Elgg_Notifications_NotificationsService::sendNotifications |
( |
|
$event, |
|
|
|
$subscriptions |
|
) |
| |
|
protected |
Sends the notifications based on subscriptions.
- Parameters
-
- Returns
- int The number of notifications handled @access private
Definition at line 216 of file NotificationsService.php.
◆ setDeprecatedNotificationSubject()
| Elgg_Notifications_NotificationsService::setDeprecatedNotificationSubject |
( |
|
$type, |
|
|
|
$subtype, |
|
|
|
$subject |
|
) |
| |
Set message subject for deprecated notification code.
- Parameters
-
| string | $type | Entity type |
| string | $subtype | Entity subtype |
| string | $subject | Subject line |
- Returns
- void
Definition at line 379 of file NotificationsService.php.
◆ unregisterEvent()
| Elgg_Notifications_NotificationsService::unregisterEvent |
( |
|
$type, |
|
|
|
$subtype |
|
) |
| |
◆ unregisterMethod()
| Elgg_Notifications_NotificationsService::unregisterMethod |
( |
|
$name | ) |
|
◆ $access
| Elgg_Notifications_NotificationsService::$access |
|
protected |
◆ $deprHandlers
| Elgg_Notifications_NotificationsService::$deprHandlers = array() |
|
protected |
◆ $deprSubjects
| Elgg_Notifications_NotificationsService::$deprSubjects = array() |
|
protected |
◆ $events
| Elgg_Notifications_NotificationsService::$events = array() |
|
protected |
◆ $hooks
| Elgg_Notifications_NotificationsService::$hooks |
|
protected |
◆ $methods
| Elgg_Notifications_NotificationsService::$methods = array() |
|
protected |
◆ $queue
| Elgg_Notifications_NotificationsService::$queue |
|
protected |
◆ $subscriptions
| Elgg_Notifications_NotificationsService::$subscriptions |
|
protected |
◆ QUEUE_NAME
| const Elgg_Notifications_NotificationsService::QUEUE_NAME = 'notifications' |
The documentation for this class was generated from the following file: