HTMLPurifier_Filter_ExtractStyleBlocks Klassenreferenz

Klassendiagramm für HTMLPurifier_Filter_ExtractStyleBlocks:

Inheritance graph
[Legende]
Zusammengehörigkeiten von HTMLPurifier_Filter_ExtractStyleBlocks:

Collaboration graph
[Legende]

Öffentliche Methoden

 __construct ()
 preFilter ($html, $config, $context)
 cleanCSS ($css, $config, $context)

Datenfelder

 $name = 'ExtractStyleBlocks'

Geschützte Methoden

 styleCallback ($matches)

Ausführliche Beschreibung

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.

Zu beachten:
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()

Definiert in Zeile 17 der Datei ExtractStyleBlocks.php.


Beschreibung der Konstruktoren und Destruktoren

__construct (  ) 

Definiert in Zeile 24 der Datei ExtractStyleBlocks.php.


Dokumentation der Elementfunktionen

cleanCSS ( css,
config,
context 
)

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

Warnung:
Requires CSSTidy <http://csstidy.sourceforge.net/>
Parameter:
$css CSS styling to clean
$config Instance of HTMLPurifier_Config
$context Instance of HTMLPurifier_Context
Rückgabe:
Cleaned CSS

Definiert in Zeile 63 der Datei ExtractStyleBlocks.php.

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

preFilter ( html,
config,
context 
)

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

Noch zu erledigen:
Extend to indicate non-text/css style blocks

Erneute Implementation von HTMLPurifier_Filter.

Definiert in Zeile 40 der Datei ExtractStyleBlocks.php.

Hier ist ein Graph der zeigt, was diese Funktion aufruft:

styleCallback ( matches  )  [protected]

Save the contents of CSS blocks to style matches

Parameter:
$matches preg_replace style $matches array

Definiert in Zeile 32 der Datei ExtractStyleBlocks.php.


Dokumentation der Datenelemente

$name = 'ExtractStyleBlocks'

Name of the filter for identification purposes

Erneute Implementation von HTMLPurifier_Filter.

Definiert in Zeile 20 der Datei ExtractStyleBlocks.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