Class HTMLPurifier_AttrTransform_BoolToCSS
Inheritance | HTMLPurifier_AttrTransform_BoolToCSS » HTMLPurifier_AttrTransform |
---|
Pre-transform that changes converts a boolean attribute to fixed CSS
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$attr | Name of boolean attribute that is trigger. | HTMLPurifier_AttrTransform_BoolToCSS | |
$css | CSS declarations to add to style, needs trailing semicolon. | HTMLPurifier_AttrTransform_BoolToCSS |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | HTMLPurifier_AttrTransform_BoolToCSS | |
confiscateAttr() | Retrieves and removes an attribute | HTMLPurifier_AttrTransform |
prependCSS() | Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. | HTMLPurifier_AttrTransform |
transform() | HTMLPurifier_AttrTransform_BoolToCSS |
Property Details
Method Details
public void __construct ( $attr, $css ) | ||
$attr | string | Attribute name to convert from |
$css | string | CSS declarations to add to style (needs semicolon) |
public array transform ( $attr, $config, $context ) | ||
$attr | array | |
$config | HTMLPurifier_Config | |
$context | HTMLPurifier_Context |