vB_Notification_Moderator_MonitoredWord
extends vB_Notification_Moderator
in package
Table of Contents
- TYPENAME = 'MonitoredWord'
- $emailBitfieldName : mixed
- $hasEmailNotificationOption : mixed
- $notifyBitfieldName : mixed
- $triggers : mixed
- $updateEvents : mixed
- $usersToNotify : mixed
- combineNotifications() : array<string|int, mixed>
- Combines a notification with a previous one to avoid showing duplicate notifications.
- fetchPhraseArray() : mixed
- renderEmailPhrases() : mixed
- shouldSendEmailToUser() : mixed
- addAdditionalRecipients() : mixed
- defineUnique() : mixed
- flagCombinedNotifications() : mixed
- getUserIdsToEmail() : mixed
- getUserIdsToNotify() : mixed
- getUserIdsToNotifyOrEmail() : mixed
- normalizeCustomData() : mixed
- overwriteRule() : mixed
- populateUsersToNotify() : mixed
- typeEnabledForUser() : mixed
- validateProvidedRecipients() : mixed
Constants
TYPENAME
public
mixed
TYPENAME
= 'MonitoredWord'
Properties
$emailBitfieldName
protected
mixed
$emailBitfieldName
= 'monitoredword'
$hasEmailNotificationOption
protected
mixed
$hasEmailNotificationOption
= rue
$notifyBitfieldName
protected
mixed
$notifyBitfieldName
= 'monitoredword'
$triggers
protected
static mixed
$triggers
= ['node-monitored-word-found' => 20, 'user-monitored-word-found' => 20]
$updateEvents
protected
static mixed
$updateEvents
= ['read_topic', 'read_channel', 'physically_deleted_node', 'deleted_user']
$usersToNotify
protected
mixed
$usersToNotify
=
ull
Methods
combineNotifications()
Combines a notification with a previous one to avoid showing duplicate notifications.
public
combineNotifications(mixed $addNotificationData, mixed $targetNotificationData, mixed $addNotificationFromDb) : array<string|int, mixed>
combineNotifications() works in conjunction with the overwrite rule 'combine'.
Parameters
- $addNotificationData : mixed
- $targetNotificationData : mixed
- $addNotificationFromDb : mixed
Return values
array<string|int, mixed> —Combined notification information
fetchPhraseArray()
public
static fetchPhraseArray(mixed $notificationData) : mixed
Parameters
- $notificationData : mixed
Tags
Return values
mixed —renderEmailPhrases()
public
static renderEmailPhrases(mixed $data) : mixed
Parameters
- $data : mixed
Tags
Return values
mixed —shouldSendEmailToUser()
public
shouldSendEmailToUser(mixed $userid) : mixed
Parameters
- $userid : mixed
Return values
mixed —addAdditionalRecipients()
protected
addAdditionalRecipients() : mixed
Return values
mixed —defineUnique()
protected
final static defineUnique(mixed $notificationData, mixed $skipValidation) : mixed
Parameters
- $notificationData : mixed
- $skipValidation : mixed
Return values
mixed —flagCombinedNotifications()
protected
flagCombinedNotifications(mixed &$addNotificationData, mixed &$targetNotificationData, mixed $addNotificationFromDb) : mixed
Parameters
- $addNotificationData : mixed
- $targetNotificationData : mixed
- $addNotificationFromDb : mixed
Return values
mixed —getUserIdsToEmail()
protected
getUserIdsToEmail() : mixed
Return values
mixed —getUserIdsToNotify()
protected
getUserIdsToNotify() : mixed
Return values
mixed —getUserIdsToNotifyOrEmail()
protected
getUserIdsToNotifyOrEmail(mixed $notificationType) : mixed
Parameters
- $notificationType : mixed
Return values
mixed —normalizeCustomData()
protected
static normalizeCustomData(mixed $customData) : mixed
Parameters
- $customData : mixed
Return values
mixed —overwriteRule()
protected
overwriteRule() : mixed
Return values
mixed —populateUsersToNotify()
protected
populateUsersToNotify() : mixed
Return values
mixed —typeEnabledForUser()
protected
typeEnabledForUser(mixed $user) : mixed
Parameters
- $user : mixed
Return values
mixed —validateProvidedRecipients()
protected
validateProvidedRecipients(mixed $recipients) : mixed
Parameters
- $recipients : mixed