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

Fonctions membres publiques

 __construct ()
 
 preFilter ($html, $config, $context)
 
 cleanCSS ($css, $config, $context)
 
- Fonctions membres publiques hérités de HTMLPurifier_Filter
 postFilter ($html, $config, $context)
 

Champs de données

 $name = 'ExtractStyleBlocks'
 
- Champs de données hérités de HTMLPurifier_Filter
 $name
 

Fonctions membres protégées

 styleCallback ($matches)
 

Attributs privés

 $_styleMatches = array()
 
 $_tidy
 
 $_id_attrdef
 
 $_class_attrdef
 
 $_enum_attrdef
 

Description détaillée

This filter extracts <style> blocks from input HTML, cleans them up using CSSTidy, and then places them in $purifier->context->get('StyleBlocks') so they can be used elsewhere in the document.

Note
See tests/HTMLPurifier/Filter/ExtractStyleBlocksTest.php for sample usage.
This filter can also be used on stylesheets not included in the document–something purists would probably prefer. Just directly call HTMLPurifier_Filter_ExtractStyleBlocks->cleanCSS()

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( )

Documentation des fonctions membres

◆ cleanCSS()

cleanCSS (   $css,
  $config,
  $context 
)

Takes CSS (the stuff found in <style>) and cleans it.

Avertissement
Requires CSSTidy http://csstidy.sourceforge.net/
Paramètres
string$cssCSS styling to clean
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Exceptions
HTMLPurifier_Exception
Renvoie
string Cleaned CSS
+ Voici le graphe des appelants de cette fonction :

◆ preFilter()

preFilter (   $html,
  $config,
  $context 
)

Removes inline <style> tags from HTML, saves them for later use

Paramètres
string$html
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Renvoie
string
A faire:
Extend to indicate non-text/css style blocks

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

+ Voici le graphe d'appel pour cette fonction :

◆ styleCallback()

styleCallback (   $matches)
protected

Save the contents of CSS blocks to style matches

Paramètres
array$matchespreg_replace style $matches array

Documentation des champs

◆ $_class_attrdef

$_class_attrdef
private

◆ $_enum_attrdef

$_enum_attrdef
private

◆ $_id_attrdef

$_id_attrdef
private

◆ $_styleMatches

$_styleMatches = array()
private

@type array

◆ $_tidy

$_tidy
private

@type csstidy

◆ $name

$name = 'ExtractStyleBlocks'

@type string


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