Implements interfaces:
Swift FileEmbedder Plugin to embed remote files.
Scans a Swift_Message instance for remote files and then embeds them before sending. This also embeds local files from disk.
Located in /Swift/Plugin/FileEmbedder.php (line 22)
(X)HTML tag defintions listing allowed attributes and extensions.
True if local files will be embedded.
True if remote files will be embedded.
A PCRE regexp which will be passed via sprintf() to produce a complete pattern.
A list of extensions mapping to their usual MIME types.
Protocols which may be used to download a remote file.
Child IDs of files already embedded.
A PCRE regexp which will be passed via sprintf() to produce a complete pattern.
Add a new protocol which can be used to download files.
Protocols should not include the "://" portion. This method expects alphanumeric characters only.
Add a new MIME type defintion (or overwrite an existing one).
Swift's BeforeSendListener required method.
Runs just before Swift sends a message. Here is where we do all the replacements.
Empty out the cache of registered files.
Callback method for preg_replace().
Embeds files which have been found during scanning.
Callback method for preg_replace().
Embeds files which have been found during scanning.
Returns true if local files can be embedded, or false if not.
Returns true if remote files can be embedded, or false if not.
Get the PCRE pattern for a local file based on the tag name.
Gets the sprintf() format string for the PCRE pattern to scan for remote files.
Get a list of all registered protocols.
Get the PCRE pattern for a remote file based on the tag name.
Gets the sprintf() format string for the PCRE pattern to scan for remote files.
Get a tag definition.
Returns an array with indexes "attributes" and "extensions". Each element is an array listing the values within it.
Get the MIME type based upon the extension.
Register a file which has been downloaded so it doesn't need to be downloaded twice.
Remove a protocol from the list of allowed protocols once added.
Remove a tag definition for remote files.
Turn on or off local file embedding.
Turn on or off remote file embedding.
Set the PCRE pattern which finds -full- HTML tags and copies the path for a local file into a backreference.
The pattern contains three %s replacements for sprintf(). First replacement is the tag name (e.g. img) Second replacement is the attribute name (e.g. src) Third replacement is the file extension (e.g. jpg) This pattern should contain the full URL in backreference index 3.
Set the PCRE pattern which finds -full- HTML tags and copies the URL for the remote file into a backreference.
The pattern contains four %s replacements for sprintf(). First replacement is the tag name (e.g. img) Second replacement is the attribute name (e.g. src) Third replacement is the protocol (e.g. http) Fourth replacement is the file extension (e.g. jpg) This pattern should contain the full URL in backreference index 3.
Add, or modify a tag definition.
This affects how the plugins scans for files to download.
Documentation generated on Wed, 26 Mar 2008 20:33:07 +1100 by phpDocumentor 1.3.1