Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: Swift_Plugins_RedirectingPlugin

Source Location: /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/RedirectingPlugin.php

Class Overview


Redirects all email to a single recipient.


Author(s):

  • Fabien Potencier

Implements interfaces:

Methods



Class Details

[line 16]
Redirects all email to a single recipient.



Tags:

author:  Fabien Potencier


[ Top ]


Class Methods


constructor __construct [line 38]

Swift_Plugins_RedirectingPlugin __construct( mixed $recipient, [ $whitelist = array()])

Create a new RedirectingPlugin.



Tags:

access:  public


Parameters:

mixed   $recipient  
array   $whitelist  

[ Top ]

method beforeSendPerformed [line 89]

void beforeSendPerformed( Swift_Events_SendEvent $evt)

Invoked immediately before the Message is sent.



Tags:

access:  public



Implementation of:
Swift_Events_SendListener::beforeSendPerformed()
Invoked immediately before the Message is sent.

Parameters:

Swift_Events_SendEvent   $evt  

[ Top ]

method getRecipient [line 59]

mixed getRecipient( )

Get the recipient of all messages.



Tags:

access:  public


[ Top ]

method getWhitelist [line 79]

array getWhitelist( )

Get the whitelist.



Tags:

access:  public


[ Top ]

method sendPerformed [line 186]

void sendPerformed( Swift_Events_SendEvent $evt)

Invoked immediately after the Message is sent.



Tags:

access:  public



Implementation of:
Swift_Events_SendListener::sendPerformed()
Invoked immediately after the Message is sent.

Parameters:

Swift_Events_SendEvent   $evt  

[ Top ]

method setRecipient [line 49]

void setRecipient( mixed $recipient)

Set the recipient of all messages.



Tags:

access:  public


Parameters:

mixed   $recipient  

[ Top ]

method setWhitelist [line 69]

void setWhitelist( $whitelist)

Set a list of regular expressions to whitelist certain recipients.



Tags:

access:  public


Parameters:

array   $whitelist  

[ Top ]

method _isWhitelisted [line 166]

bool _isWhitelisted( $recipient $recipient)

Matches address against whitelist of regular expressions.



Tags:

access:  protected


Parameters:

$recipient   $recipient  

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:53:49 +0000 by phpDocumentor 1.4.3