ILIAS
Release_5_0_x_branch Revision 61816
|
Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS. More...
Public Member Functions | |
__construct ($attr, $enum_to_css, $case_sensitive=false) | |
transform ($attr, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_AttrTransform | |
prependCSS (&$attr, $css) | |
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. | |
confiscateAttr (&$attr, $key) | |
Retrieves and removes an attribute. |
Protected Attributes | |
$attr | |
Name of attribute to transform from. | |
$enumToCSS = array() | |
Lookup array of attribute values to CSS. | |
$caseSensitive = false | |
Case sensitivity of the matching. |
Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS.
Definition at line 7 of file EnumToCSS.php.
HTMLPurifier_AttrTransform_EnumToCSS::__construct | ( | $attr, | |
$enum_to_css, | |||
$case_sensitive = false |
|||
) |
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 |
Definition at line 34 of file EnumToCSS.php.
References $attr.
HTMLPurifier_AttrTransform_EnumToCSS::transform | ( | $attr, | |
$config, | |||
$context | |||
) |
array | $attr | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Reimplemented from HTMLPurifier_AttrTransform.
Definition at line 47 of file EnumToCSS.php.
References $attr, and HTMLPurifier_AttrTransform\prependCSS().
|
protected |
Name of attribute to transform from.
string
Definition at line 13 of file EnumToCSS.php.
Referenced by __construct(), and transform().
|
protected |
Case sensitivity of the matching.
bool
Definition at line 27 of file EnumToCSS.php.
|
protected |