Implements interfaces:
Swift Decorator Plugin.
Allows messages to be slightly different for each recipient.
Located in /Swift/Plugin/Decorator.php (line 23)
True if values in the headers can be replaced
A list of allowed mime types to replace bodies for.
The replacements object.
Temporary storage so we can restore changes we make.
Ctor.
Add a mime type to the list of permitted type to replace values in the body.
Called just before Swift sends a message.
We perform operations on the message here.
Check if replacements in headers are allowed.
Get the list of mime types for which the body can be changed.
Get the replacements object.
Check if the body can be replaced in the given mime type.
Replace strings in the message searching through all the allowed sub-parts.
Put the original values back in the message after it was modified before sending.
Remove the ability to replace values in the body of the given mime type
Perform a str_replace() over the given value.
Enable of disable the ability to replace values in the headers
Set the replacements as a 2-d array or an instance of Swift_Plugin_Decorator_Replacements.
Documentation generated on Wed, 26 Mar 2008 20:33:05 +1100 by phpDocumentor 1.3.1