HTMLPurifier 4.4.0
HTMLPurifier_TagTransform Class Reference

Defines a mutation of an obsolete tag into a valid tag. More...

Inheritance diagram for HTMLPurifier_TagTransform:
HTMLPurifier_TagTransform_Font HTMLPurifier_TagTransform_Font HTMLPurifier_TagTransform_Simple HTMLPurifier_TagTransform_Simple

List of all members.

Public Member Functions

 transform ($tag, $config, $context)
 Transforms the obsolete tag into the valid tag.
 transform ($tag, $config, $context)
 Transforms the obsolete tag into the valid tag.

Public Attributes

 $transform_to
 Tag name to transform the tag to.

Protected Member Functions

 prependCSS (&$attr, $css)
 Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
 prependCSS (&$attr, $css)
 Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Detailed Description

Defines a mutation of an obsolete tag into a valid tag.

Definition at line 6 of file TagTransform.php.


Member Function Documentation

HTMLPurifier_TagTransform::prependCSS ( &$  attr,
css 
) [protected]

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Warning:
Copied over from AttrTransform, be sure to keep in sync
Parameters:
$attrAttribute array to process (passed by reference)
$cssCSS to prepend

Definition at line 29 of file TagTransform.php.

Referenced by HTMLPurifier_TagTransform_Simple::transform().

HTMLPurifier_TagTransform::prependCSS ( &$  attr,
css 
) [protected]

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Warning:
Copied over from AttrTransform, be sure to keep in sync
Parameters:
$attrAttribute array to process (passed by reference)
$cssCSS to prepend

Definition at line 6946 of file HTMLPurifier.standalone.php.

HTMLPurifier_TagTransform::transform ( tag,
config,
context 
) [abstract]

Transforms the obsolete tag into the valid tag.

Parameters:
$tagTag to be transformed.
$configMandatory HTMLPurifier_Config object
$contextMandatory HTMLPurifier_Context object

Reimplemented in HTMLPurifier_TagTransform_Font, HTMLPurifier_TagTransform_Simple, HTMLPurifier_TagTransform_Font, and HTMLPurifier_TagTransform_Simple.

HTMLPurifier_TagTransform::transform ( tag,
config,
context 
) [abstract]

Transforms the obsolete tag into the valid tag.

Parameters:
$tagTag to be transformed.
$configMandatory HTMLPurifier_Config object
$contextMandatory HTMLPurifier_Context object

Reimplemented in HTMLPurifier_TagTransform_Font, HTMLPurifier_TagTransform_Simple, HTMLPurifier_TagTransform_Font, and HTMLPurifier_TagTransform_Simple.


Member Data Documentation

HTMLPurifier_TagTransform::$transform_to

Tag name to transform the tag to.

Reimplemented in HTMLPurifier_TagTransform_Font.

Definition at line 12 of file TagTransform.php.

Referenced by HTMLPurifier_TagTransform_Simple::__construct().


The documentation for this class was generated from the following files: