[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Plugins/ -> RedirectingPlugin.php (summary)

(no description)

File Size: 213 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Swift_Plugins_RedirectingPlugin:: (11 methods):
  __construct()
  setRecipient()
  getRecipient()
  setWhitelist()
  getWhitelist()
  beforeSendPerformed()
  _filterHeaderSet()
  _filterNameAddresses()
  _isWhitelisted()
  sendPerformed()
  _restoreMessage()


Class: Swift_Plugins_RedirectingPlugin  - X-Ref

Redirects all email to a single recipient.

__construct($recipient, array $whitelist = array()   X-Ref
Create a new RedirectingPlugin.

param: mixed $recipient
param: array $whitelist

setRecipient($recipient)   X-Ref
Set the recipient of all messages.

param: mixed $recipient

getRecipient()   X-Ref
Get the recipient of all messages.

return: mixed

setWhitelist(array $whitelist)   X-Ref
Set a list of regular expressions to whitelist certain recipients.

param: array $whitelist

getWhitelist()   X-Ref
Get the whitelist.

return: array

beforeSendPerformed(Swift_Events_SendEvent $evt)   X-Ref
Invoked immediately before the Message is sent.

param: Swift_Events_SendEvent $evt

_filterHeaderSet(Swift_Mime_HeaderSet $headerSet, $type)   X-Ref
Filter header set against a whitelist of regular expressions.

param: Swift_Mime_HeaderSet $headerSet
param: string               $type

_filterNameAddresses(array $recipients)   X-Ref
Filtered list of addresses => name pairs.

param: array $recipients
return: array

_isWhitelisted($recipient)   X-Ref
Matches address against whitelist of regular expressions.

param: $recipient
return: bool

sendPerformed(Swift_Events_SendEvent $evt)   X-Ref
Invoked immediately after the Message is sent.

param: Swift_Events_SendEvent $evt

_restoreMessage(Swift_Mime_Message $message)   X-Ref
No description



Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1