|
ILIAS
Release_4_4_x_branch Revision 61816
|
Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS. More...
Inheritance diagram for HTMLPurifier_AttrTransform_EnumToCSS:
Collaboration diagram for HTMLPurifier_AttrTransform_EnumToCSS:Public Member Functions | |
| __construct ($attr, $enum_to_css, $case_sensitive=false) | |
| transform ($attr, $config, $context) | |
| Abstract: makes changes to the attributes dependent on multiple values. | |
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 |
|||
| ) |
| $attr | String attribute name to transform from |
| $enumToCSS | Lookup array of attribute values to CSS |
| $case_sensitive | Boolean case sensitivity indicator, default false |
Definition at line 31 of file EnumToCSS.php.
References $attr.
| HTMLPurifier_AttrTransform_EnumToCSS::transform | ( | $attr, | |
| $config, | |||
| $context | |||
| ) |
Abstract: makes changes to the attributes dependent on multiple values.
| $attr | Assoc array of attributes, usually from HTMLPurifier_Token_Tag::$attr |
| $config | Mandatory HTMLPurifier_Config object. |
| $context | Mandatory HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_AttrTransform.
Definition at line 37 of file EnumToCSS.php.
References $attr, and HTMLPurifier_AttrTransform\prependCSS().
Here is the call graph for this function:
|
protected |
Name of attribute to transform from.
Definition at line 12 of file EnumToCSS.php.
Referenced by __construct(), and transform().
|
protected |
Case sensitivity of the matching.
Definition at line 24 of file EnumToCSS.php.
|
protected |
Lookup array of attribute values to CSS.
Definition at line 17 of file EnumToCSS.php.