|
| __construct ($attr, $enum_to_css, $case_sensitive=false) |
|
| confiscateAttr (&$attr, $key) |
| Retrieves and removes an attribute.
|
|
| prependCSS (&$attr, $css) |
| Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
|
|
| transform ($attr, $config, $context) |
|
|
| $attr |
| Name of attribute to transform from.
|
|
| $caseSensitive = false |
| Case sensitivity of the matching.
|
|
| $enumToCSS = array() |
| Lookup array of attribute values to CSS.
|
|
◆ __construct()
HTMLPurifier_AttrTransform_EnumToCSS::__construct |
( |
| $attr, |
|
|
| $enum_to_css, |
|
|
| $case_sensitive = false ) |
- Parameters
-
string | $attr | Attribute name to transform from |
array | $enum_to_css | Lookup array of attribute values to CSS |
bool | $case_sensitive | Case sensitivity indicator, default false |
◆ confiscateAttr()
HTMLPurifier_AttrTransform::confiscateAttr |
( |
& | $attr, |
|
|
| $key ) |
|
inherited |
Retrieves and removes an attribute.
- Parameters
-
array | &$attr | Attribute array to process (passed by reference) |
mixed | $key | Key of attribute to confiscate |
- Return values
-
◆ prependCSS()
HTMLPurifier_AttrTransform::prependCSS |
( |
& | $attr, |
|
|
| $css ) |
|
inherited |
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
- Parameters
-
array | &$attr | Attribute array to process (passed by reference) |
string | $css | CSS to prepend |
◆ transform()
HTMLPurifier_AttrTransform_EnumToCSS::transform |
( |
| $attr, |
|
|
| $config, |
|
|
| $context ) |
◆ $attr
HTMLPurifier_AttrTransform_EnumToCSS::$attr |
|
protected |
Name of attribute to transform from.
@type string
◆ $caseSensitive
HTMLPurifier_AttrTransform_EnumToCSS::$caseSensitive = false |
|
protected |
Case sensitivity of the matching.
@type bool
- Warning
- Currently can only be guaranteed to work with ASCII values.
◆ $enumToCSS
HTMLPurifier_AttrTransform_EnumToCSS::$enumToCSS = array() |
|
protected |
Lookup array of attribute values to CSS.
@type array
The documentation for this class was generated from the following file:
- lib/htmlpurifier/HTMLPurifier/AttrTransform/EnumToCSS.php