\HTMLPurifier_AttrTransform_EnumToCSS
Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS.
Synopsis
class HTMLPurifier_AttrTransform_EnumToCSS
extends HTMLPurifier_AttrTransform
{
- // members
- protected $attr;
- protected array $enumToCSS = ;
- protected boolean $caseSensitive = false;
- // methods
- public void __construct()
- public void transform()
- // Inherited methods from HTMLPurifier_AttrTransform
- public abstract void transform()
- public void prependCSS()
- public void confiscateAttr()
Hierarchy
Extends
Members
protected
-
$attr
Name of attribute to transform from -
$caseSensitive
Case sensitivity of the matching -
$enumToCSS
Lookup array of attribute values to CSS
Methods
public
Inherited from HTMLPurifier_AttrTransform
public
- confiscateAttr() — Retrieves and removes an attribute
- prependCSS() — Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
- transform() — Abstract: makes changes to the attributes dependent on multiple values.