[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/MIME/Viewer/ -> richtext.php (sommaire)

(pas de description)

Poids: 140 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

MIME_Viewer_richtext:: (2 méthodes):
  render()
  getType()


Classe: MIME_Viewer_richtext  - X-Ref

The MIME_Viewer_richtext class renders out HTML text from text/richtext
content tags, (RFC 1896 [7.1.3]).

A minimal richtext implementation is one that simply converts "<lt>" to
"<", converts CRLFs to SPACE, converts <nl> to a newline according to
local newline convention, removes everything between a <comment> command
and the next balancing </comment> command, and removes all other
other formatting commands (all text enclosed in angle brackets).

We implement the following tags:
<bold>, <italic>, <fixed>, <smaller>, <bigger>, <underline>, <center>,
<flushleft>, <flushright>, <indent>, <subscript>, <excerpt>, <paragraph>,
<signature>, <comment>, <no-op>, <lt>, <nl>

The following tags are implemented differently than described in the RFC
(due to limitations in HTML output):
<heading> - Output as centered, bold text.
<footing> - Output as centered, bold text.
<np>      - Output as paragraph break.

The following tags are NOT implemented:
<indentright>, <outdent>, <outdentright>, <samepage>, <iso-8859-X>,
<us-ascii>,

$Horde: framework/MIME/MIME/Viewer/richtext.php,v 1.4.10.7 2006/01/01 21:28:25 jan Exp $

Copyright 2004-2006 Michael Slusarz <slusarz@bigworm.colorado.edu>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

render($params = array()   X-Ref
Render out the currently set contents in HTML format.

param: array $params  Any parameters the Viewer may need.
return: string  The rendered contents.

getType()   X-Ref
Return the MIME content type of the rendered content.

return: string  The content type of the output.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7