|
| __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 () |
| private More...
|
|
| registerMethod ($name) |
|
| unregisterMethod ($name) |
|
| getMethods () |
| 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.
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 private
Definition at line 135 of file NotificationsService.php.
Elgg_Notifications_NotificationsService::getDeprecatedHandler |
( |
|
$method | ) |
|
Get a deprecated notification handler callback.
- Parameters
-
- Returns
- callback|null
Definition at line 322 of file NotificationsService.php.
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.
Elgg_Notifications_NotificationsService::getEvents |
( |
| ) |
|
Elgg_Notifications_NotificationsService::getMethods |
( |
| ) |
|
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.
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 private
Definition at line 168 of file NotificationsService.php.
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.
Elgg_Notifications_NotificationsService::registerEvent |
( |
|
$type, |
|
|
|
$subtype, |
|
|
array |
$actions = array() |
|
) |
| |
Elgg_Notifications_NotificationsService::registerMethod |
( |
|
$name | ) |
|
Elgg_Notifications_NotificationsService::sendNotifications |
( |
|
$event, |
|
|
|
$subscriptions |
|
) |
| |
|
protected |
Sends the notifications based on subscriptions.
- Parameters
-
- Returns
- int The number of notifications handled private
Definition at line 216 of file NotificationsService.php.
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.
Elgg_Notifications_NotificationsService::unregisterEvent |
( |
|
$type, |
|
|
|
$subtype |
|
) |
| |
Elgg_Notifications_NotificationsService::unregisterMethod |
( |
|
$name | ) |
|
Elgg_Notifications_NotificationsService::$access |
|
protected |
Elgg_Notifications_NotificationsService::$deprHandlers = array() |
|
protected |
Elgg_Notifications_NotificationsService::$deprSubjects = array() |
|
protected |
Elgg_Notifications_NotificationsService::$events = array() |
|
protected |
Elgg_Notifications_NotificationsService::$hooks |
|
protected |
Elgg_Notifications_NotificationsService::$methods = array() |
|
protected |
Elgg_Notifications_NotificationsService::$queue |
|
protected |
Elgg_Notifications_NotificationsService::$subscriptions |
|
protected |
const Elgg_Notifications_NotificationsService::QUEUE_NAME = 'notifications' |
The documentation for this class was generated from the following file: