Method | Description | |
---|---|---|
__construct ( mixed $replacements ) | Create a new DecoratorPlugin with $replacements. | |
beforeSendPerformed ( Swift_Events_SendEvent $evt ) | Invoked immediately before the Message is sent. | |
getReplacementsFor ( string $address ) : array | Find a map of replacements for the address. | |
sendPerformed ( Swift_Events_SendEvent $evt ) | Invoked immediately after the Message is sent. | |
setReplacements ( mixed $replacements ) | Sets replacements. |
Method | Description | |
---|---|---|
_restoreMessage ( Swift_Mime_Message $message ) | Restore a changed message back to its original state |
$replacements = array(
"[email protected]" => array("{a}" => "b", "{c}" => "d"),
"[email protected]" => array("{a}" => "x", "{c}" => "y")
)
When using an instance of {@link Swift_Plugins_Decorator_Replacements},
the object should return just the array of replacements for the address
given to {@link Swift_Plugins_Decorator_Replacements::getReplacementsFor()}. public __construct ( mixed $replacements ) | ||
$replacements | mixed | Array or Swift_Plugins_Decorator_Replacements |
public beforeSendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
public getReplacementsFor ( string $address ) : array | ||
$address | string | |
return | array |
public sendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
public setReplacements ( mixed $replacements ) | ||
$replacements | mixed | Array or Swift_Plugins_Decorator_Replacements |