|
HTMLPurifier 4.4.0
|
Pre-transform that changes converts a boolean attribute to fixed CSS. More...
Public Member Functions | |
| __construct ($attr, $css) | |
| transform ($attr, $config, $context) | |
| Abstract: makes changes to the attributes dependent on multiple values. | |
| __construct ($attr, $css) | |
| transform ($attr, $config, $context) | |
| Abstract: makes changes to the attributes dependent on multiple values. | |
Protected Attributes | |
| $attr | |
| Name of boolean attribute that is trigger. | |
| $css | |
| CSS declarations to add to style, needs trailing semicolon. | |
Pre-transform that changes converts a boolean attribute to fixed CSS.
Definition at line 6 of file BoolToCSS.php.
| HTMLPurifier_AttrTransform_BoolToCSS::__construct | ( | $ | attr, |
| $ | css | ||
| ) |
| $attr | string attribute name to convert from |
| $css | string CSS declarations to add to style (needs semicolon) |
Definition at line 22 of file BoolToCSS.php.
| HTMLPurifier_AttrTransform_BoolToCSS::__construct | ( | $ | attr, |
| $ | css | ||
| ) |
| $attr | string attribute name to convert from |
| $css | string CSS declarations to add to style (needs semicolon) |
Definition at line 10753 of file HTMLPurifier.standalone.php.
| HTMLPurifier_AttrTransform_BoolToCSS::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 27 of file BoolToCSS.php.
References $attr, and HTMLPurifier_AttrTransform::prependCSS().
| HTMLPurifier_AttrTransform_BoolToCSS::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 10758 of file HTMLPurifier.standalone.php.
References $attr, and HTMLPurifier_AttrTransform::prependCSS().
HTMLPurifier_AttrTransform_BoolToCSS::$attr [protected] |
Name of boolean attribute that is trigger.
Definition at line 11 of file BoolToCSS.php.
Referenced by __construct(), and transform().
HTMLPurifier_AttrTransform_BoolToCSS::$css [protected] |
CSS declarations to add to style, needs trailing semicolon.
Definition at line 16 of file BoolToCSS.php.
Referenced by __construct().