The MIME_Viewer:: class provides an abstracted interface to render out MIME types into HTML format. It depends on a set of MIME_Viewer_* drivers which handle the actual rendering, and also a configuration file to map MIME types to drivers.
$Horde: framework/MIME/MIME/Viewer.php,v 1.64.10.15 2009/01/06 15:23:20 jan Exp $
Copyright 1999-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /MIME/MIME/Viewer.php (line 18)
Class | Description |
---|---|
![]() |
The MIME_Viewer_audio class sends audio parts to the browser for handling by the browser, a plugin, or a helper application. |
![]() |
The MIME_Viewer_deb class renders out lists of files in Debian packages by using the dpkg tool to query the package. |
![]() |
The MIME_Viewer_default class simply prints out the encapsulated content. It exists as a fallback if no other intelligent rendering mechanism could be used. |
![]() |
The MIME_Viewer_enriched class renders out plain text from enriched content tags, ala RFC 1896. |
![]() |
The MIME_Viewer_images class allows images to be displayed. |
![]() |
The MIME_Viewer_msexcel class renders out Microsoft Excel documents in HTML format by using the xlHtml package. |
![]() |
The MIME_Viewer_mspowerpoint class renders out Microsoft Powerpoint documents in HTML format by using the xlHtml package. |
![]() |
The MIME_Viewer_msword class renders out Microsoft Word documents in HTML format by using the wvWare package. |
![]() |
The MIME_Viewer_ooo class renders out OpenOffice.org documents in HTML format. |
![]() |
The MIME_Viewer_pdf class simply outputs the PDF file with the content-type 'application/pdf' enabling web browsers with a PDF viewer plugin to view the PDF file inside the browser. |
![]() |
The MIME_Viewer_plain class renders out plain text with URLs made into hyperlinks (if viewing inline). |
![]() |
The MIME_Viewer_rar class renders out the contents of .rar archives in HTML format. |
![]() |
The MIME_Viewer_report class is a wrapper used to load the appropriate MIME_Viewer for multipart/report data (RFC 3462). |
![]() |
The MIME_Viewer_rfc822 class renders out messages from the message/rfc822 content type. |
![]() |
The MIME_Viewer_richtext class renders out HTML text from text/richtext content tags, (RFC 1896 [7.1.3]). |
![]() |
The MIME_Viewer_rpm class renders out lists of files in RPM packages by using the rpm tool to query the package. |
![]() |
The MIME_Viewer_rtf class renders out Rich Text Fromat documents in HTML format by using the UnRTF package (http://www.gnu.org/software/unrtf/unrtf.html). |
![]() |
The MIME_Viewer_security class is a wrapper used to load the appropriate MIME_Viewer for secure multipart messages (defined by RFC 1847). This class handles multipart/signed and multipart/encrypted data. |
![]() |
The MIME_Viewer_simple class renders out plain text without any modifications. |
![]() |
The MIME_Viewer_smil renders SMIL documents to very basic HTML. |
![]() |
The MIME_Viewer_source class is a class for any viewer that wants to provide line numbers to extend. |
![]() |
The MIME_Viewer_tgz class renders out plain or gzipped tarballs in HTML. |
![]() |
The MIME_Viewer_tnef class allows MS-TNEF attachments to be displayed. |
![]() |
The MIME_Viewer_webcpp class renders out various content in HTML format by using Web C Plus Plus. |
![]() |
The MIME_Viewer_wordperfect class renders out WordPerfect documents in HTML format by using the libwpd package (http://libwpd.sourceforge.net/). |
![]() |
The MIME_Viewer_zip class renders out the contents of ZIP files in HTML format. |
![]() |
The MIME_Viewer_html class renders out HTML text with an effort to remove potentially malicious code. |
![]() |
The MIME_Viewer_vcard class renders out vCards in HTML format. |
The MIME_Part object to render.
Configuration parameters.
getDriver cache.
Force viewing of a part inline, regardless of the Content-Disposition of the MIME Part.
Constructor for MIME_Viewer
Can this driver render the the data inline?
Attempts to return a concrete MIME_Viewer_* object based on the type of MIME_Part passed onto it.
Should we force viewing of this MIME Part inline, regardless of the Content-Disposition of the MIME Part?
Returns the character set used for the Viewer.
Should be overridden by individual drivers to perform custom tasks.
Return a configuration parameter for the current viewer.
Given an input MIME type and a module name, this function resolves it into a specific output driver which can handle it.
Given a MIME type, this function will return an appropriate icon.
Return the MIME type of the rendered content. This can be
overridden by the individual drivers, depending on what format they output in. By default, it passes through the MIME type of the object, or replaces custom extension types with 'text/plain' to let the browser do a best-guess render.
Include the code for the relevant driver.
Return the rendered version of the object.
Should be overridden by individual drivers to perform custom tasks. The $mime_part class variable has the information to render, encapsulated in a MIME_Part object.
Return text/html output used as alternative output when the fully
rendered object cannot (or should not) be displayed. For example, this function should be used for MIME attachments that cannot be viewed inline, where the user may be given options on how to view the attachment. Should be overridden by individual drivers to perform custom tasks. The $mime_part class variable has the information to render, encapsulated in a MIME_Part object.
Given a driver and an application, this returns the fully qualified filesystem path to the driver source file.
Documentation generated on Sun, 30 Jan 2011 05:23:18 +0000 by phpDocumentor 1.4.3