Class MIME_Viewer_enriched

Description

The MIME_Viewer_enriched class renders out plain text from enriched content tags, ala RFC 1896.

By RFC, we must do the minimal conformance measures of: A minimal text/enriched implementation is one that converts "<<" to "<", removes everything between a <param> command and the next balancing </param> removes all other formatting commands (all text enclosed in angle brackets), and outside of <nofill> environments converts any series of n CRLFs to n-1 CRLFs, and converts any lone CRLF pairs to SPACE.

We don't qualify as we don't currently track the <nofill> environment, that is we do CRLF conversion even if <nofill> is specified in the text, but we're close at least.

$Horde: framework/MIME/MIME/Viewer/enriched.php,v 1.23.10.11 2009/01/06 15:23:21 jan Exp $

Copyright 2001-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/enriched.php (line 28)

MIME_Viewer
   |
   --MIME_Viewer_enriched
Method Summary
 void colorize ( $colors)
 string getType ()
 void render ()
Variables
Methods
colorize (line 141)
void colorize ( $colors)
  • $colors
getType (line 154)

Return the MIME content type of the rendered content.

  • return: The content type of the output.
string getType ()

Redefinition of:
MIME_Viewer::getType()
Return the MIME type of the rendered content. This can be
render (line 35)

Render out the currently set contents in HTML format. The $mime_part class variable has the information to render out, encapsulated in a MIME_Part object.

void render ()

Redefinition of:
MIME_Viewer::render()
Return the rendered version of the object.

Inherited Methods

Inherited From MIME_Viewer

 MIME_Viewer::MIME_Viewer()
 MIME_Viewer::canDisplayInline()
 MIME_Viewer::factory()
 MIME_Viewer::forceInlineView()
 MIME_Viewer::getCharset()
 MIME_Viewer::getConfigParam()
 MIME_Viewer::getDriver()
 MIME_Viewer::getIcon()
 MIME_Viewer::getType()
 MIME_Viewer::includeDriver()
 MIME_Viewer::render()
 MIME_Viewer::renderAttachmentInfo()
 MIME_Viewer::resolveDriver()
 MIME_Viewer::setMIMEPart()

Documentation generated on Sun, 30 Jan 2011 05:17:08 +0000 by phpDocumentor 1.4.3