XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence de la classe HTMLPurifier_TagTransform_Font
+ Graphe d'héritage de HTMLPurifier_TagTransform_Font:
+ Graphe de collaboration de HTMLPurifier_TagTransform_Font:

Fonctions membres publiques

 transform ($tag, $config, $context)
 

Champs de données

 $transform_to = 'span'
 
- Champs de données hérités de HTMLPurifier_TagTransform
 $transform_to
 

Attributs protégés

 $_size_lookup
 

Membres hérités additionnels

- Fonctions membres protégées hérités de HTMLPurifier_TagTransform
 prependCSS (&$attr, $css)
 

Description détaillée

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.

Note
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.
Avertissement
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.

Documentation des fonctions membres

◆ transform()

transform (   $tag,
  $config,
  $context 
)
Paramètres
HTMLPurifier_Token_Tag$tag
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Renvoie
HTMLPurifier_Token_End|string

Réimplémentée à partir de HTMLPurifier_TagTransform.

Documentation des champs

◆ $_size_lookup

$_size_lookup
protected
Valeur initiale :
= 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%'
)

@type array

◆ $transform_to

$transform_to = 'span'

@type string


La documentation de cette classe a été générée à partir du fichier suivant :