Notification controller that handles all e-mail notifications for users package, such as creating / deleteing a user, updating a password, forgot password e-mails, verify e-mail upon registration, and so on.
get_merge_vars(integer $userid,array $data): array
Get merge variables
This obtains the necessary merge variables from the database, as you defined within the get_merge_fields() function of this class. These are used to personalize the message for the specific transaction / request.
The ID# of the user processed against.
Any additional data needed.
An associative array of the merge variables to personalize the e-mail messgae with.
get_recipient(string $recipient,integer $userid,array $data = array())
Used when the notification controller supports recipients / senders other than the defaults of admin:XX and user. This function takes in the string of the recipient / sender, plus the ID# of the user notifications are being processed against, and returns an array of the full name and e-mail address of recipient / sender.
The recipient to obtain.
The user id that e-mails are being processed against.
Optional array of any necessary data.