HTMLPurifier_TagTransform_Font Klassenreferenz

Klassendiagramm für HTMLPurifier_TagTransform_Font:

Inheritance graph
[Legende]
Zusammengehörigkeiten von HTMLPurifier_TagTransform_Font:

Collaboration graph
[Legende]

Öffentliche Methoden

 transform ($tag, $config, $context)

Datenfelder

 $transform_to = 'span'

Geschützte Attribute

 $_size_lookup

Ausführliche Beschreibung

Transforms FONT tags to the proper form (SPAN with CSS styling)

This transformation takes the three proprietary attributes of FONT and transforms them into their corresponding CSS attributes. These are color, face, and size.

Zu beachten:
Size is an interesting case because it doesn't map cleanly to CSS. Thanks to http://style.cleverchimp.com/font_size_intervals/altintervals.html for reasonable mappings.
Warnung:
This doesn't work completely correctly; specifically, this TagTransform operates before well-formedness is enforced, so the "active formatting elements" algorithm doesn't get applied.

Definiert in Zeile 18 der Datei Font.php.


Dokumentation der Elementfunktionen

transform ( tag,
config,
context 
)

Transforms the obsolete tag into the valid tag.

Parameter:
$tag Tag to be transformed.
$config Mandatory HTMLPurifier_Config object
$context Mandatory HTMLPurifier_Context object

Erneute Implementation von HTMLPurifier_TagTransform.

Definiert in Zeile 40 der Datei Font.php.


Dokumentation der Datenelemente

$_size_lookup [protected]

Initialisierung:

 array(
        '0' => 'xx-small',
        '1' => 'xx-small',
        '2' => 'small',
        '3' => 'medium',
        '4' => 'large',
        '5' => 'x-large',
        '6' => 'xx-large',
        '7' => '300%',
        '-1' => 'smaller',
        '-2' => '60%',
        '+1' => 'larger',
        '+2' => '150%',
        '+3' => '200%',
        '+4' => '300%'
    )

Definiert in Zeile 23 der Datei Font.php.

$transform_to = 'span'

Tag name to transform the tag to.

Erneute Implementation von HTMLPurifier_TagTransform.

Definiert in Zeile 21 der Datei Font.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen