extends |
HTMLPurifier_AttrTransform |
---|
Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
__construct(string $attr, array $enum_to_css, bool $case_sensitive = false)
Parameters
|
# | ||||||
public
|
transform(array $attr, HTMLPurifier_Config $config, HTMLPurifier_Context $context): array
Abstract: makes changes to the attributes dependent on multiple values.
Abstract: makes changes to the attributes dependent on multiple values. Parameters
ReturnsProcessed attribute array. Implements |
# |
Methods inherited from HTMLPurifier_AttrTransform |
---|
prependCSS(), confiscateAttr() |
Properties | |||
---|---|---|---|
protected
|
|
$attr
Name of attribute to transform from.
Name of attribute to transform from. |
# |
protected
|
|
$enumToCSS = []
Lookup array of attribute values to CSS.
Lookup array of attribute values to CSS. |
# |
protected
|
|
$caseSensitive = false
Case sensitivity of the matching.
Case sensitivity of the matching. |
# |