Elgg
Version 6.2
|
Notification Event Handler for 'user' 'user' 'remove_admin' action. More...
Public Member Functions | |
getSubscriptions () | |
Add the user to the subscribers when changing admin rights. More... | |
![]() | |
__construct (NotificationEvent $event, NotificationsService $service, array $params=[]) | |
Constructor. More... | |
send () | |
Process the event. More... | |
getMethods () | |
Returns methods to be used for this notification. More... | |
Static Public Member Functions | |
static | isConfigurableByUser () |
{Is this event configurable by the user on the notification settings page.
| |
![]() | |
static | isConfigurableForEntity (\ElggEntity $entity) |
Can this event be configured for a specific entity. More... | |
Protected Member Functions | |||||||
recipientIsChangedUser (\ElggUser $recipient) | |||||||
Tells if the recipient is the user being changed. More... | |||||||
getNotificationSubject (\ElggUser $recipient, string $method) | |||||||
{Get subject for the notification.Plugins can define a subtype specific subject simply by providing a translation for the string "notification:<action>:<type>:<subtype>:subject".
| |||||||
getNotificationBody (\ElggUser $recipient, string $method) | |||||||
{Get body for the notification.Plugin can define a subtype specific body simply by providing a translation for the string "notification:<action>:<type>:<subtype>:body".The arguments passed into the translation are:
| |||||||
getNotificationURL (\ElggUser $recipient, string $method) | |||||||
{Returns the url related to this notification.
| |||||||
addMuteLink () | |||||||
{Add a mute link in the email notification.
| |||||||
![]() | |||||||
prepareSubscriptions () | |||||||
Returns subscriptions. More... | |||||||
filterMutedSubscriptions () | |||||||
Should muted subscribers be filtered. More... | |||||||
getNotificationSubsciptionExclusionGUIDs () | |||||||
Get an array of GUIDs to not get the subscription records for. More... | |||||||
excludeOwnerSubscribers () | |||||||
Exclude the NotificationEvent object owner_guid when fetching the subscription records for this notification. More... | |||||||
excludeContainerSubscribers () | |||||||
Exclude the NotificationEvent object container_guid when fetching the subscription records for this notification. More... | |||||||
excludeEntitySubscribers () | |||||||
Exclude the NotificationEvent object guid when fetching the subscription records for this notification. More... | |||||||
sendNotifications (array $subscriptions, array $params=[]) | |||||||
Sends the notifications based on subscriptions. More... | |||||||
sendNotification (int $guid, string $method, array $params=[]) | |||||||
Send a notification to a subscriber. More... | |||||||
deliverNotification (Notification $notification, string $method) | |||||||
Deliver a notification. More... | |||||||
prepareNotification (array $params) | |||||||
Prepares a notification for delivery. More... | |||||||
getNotificationSummary (\ElggUser $recipient, string $method) | |||||||
Return the summary for a notification. More... | |||||||
getEventActor () | |||||||
Get the acting user from the notification event. More... | |||||||
getEventEntity () | |||||||
Get the entity from the notification event. More... | |||||||
Additional Inherited Members | |
![]() | |
static | isConfigurableForUser (\ElggUser $user) |
Can this event be configured for a specific user. More... | |
static | isConfigurableForGroup (\ElggGroup $group) |
Can this event be configured for a specific group. More... | |
![]() | |
$event | |
$service | |
$params = [] | |
Notification Event Handler for 'user' 'user' 'remove_admin' action.
Definition at line 12 of file RemoveAdminUserEventHandler.php.
|
protected |
{Add a mute link in the email notification.
Reimplemented from Elgg\Notifications\NotificationEventHandler.
Definition at line 79 of file RemoveAdminUserEventHandler.php.
|
protected |
{Get body for the notification.Plugin can define a subtype specific body simply by providing a translation for the string "notification:<action>:<type>:<subtype>:body".The arguments passed into the translation are:
\ElggUser | $recipient | Notification recipient |
string | $method | Method |
Reimplemented from Elgg\Notifications\NotificationEventHandler.
Definition at line 39 of file RemoveAdminUserEventHandler.php.
|
protected |
{Get subject for the notification.Plugins can define a subtype specific subject simply by providing a translation for the string "notification:<action>:<type>:<subtype>:subject".
\ElggUser | $recipient | Notification recipient |
string | $method | Method |
Reimplemented from Elgg\Notifications\NotificationEventHandler.
Definition at line 28 of file RemoveAdminUserEventHandler.php.
|
protected |
{Returns the url related to this notification.
\ElggUser | $recipient | Notification recipient |
string | $method | Method |
Reimplemented from Elgg\Notifications\NotificationEventHandler.
Definition at line 68 of file RemoveAdminUserEventHandler.php.
Elgg\Notifications\RemoveAdminUserEventHandler::getSubscriptions | ( | ) |
Add the user to the subscribers when changing admin rights.
{Returns subscriptions for the event.
Reimplemented from Elgg\Notifications\NotificationEventHandler.
Definition at line 88 of file RemoveAdminUserEventHandler.php.
|
static |
{Is this event configurable by the user on the notification settings page.
Reimplemented from Elgg\Notifications\NotificationEventHandler.
Definition at line 120 of file RemoveAdminUserEventHandler.php.
|
protected |
Tells if the recipient is the user being changed.
\ElggUser | $recipient | the recipient to check |
Definition at line 21 of file RemoveAdminUserEventHandler.php.