Class HTMLPurifier_AttrTransform_BoolToCSS
Pre-transform that changes converts a boolean attribute to fixed CSS
-
HTMLPurifier_AttrTransform
-
HTMLPurifier_AttrTransform_BoolToCSS
Methods summary
public
|
#
__construct( $attr $attr, $css $css )
Parameters
- $attr
$attr string attribute name to convert from
- $css
$css string CSS declarations to add to style (needs semicolon)
|
public
|
#
transform( $attr $attr, $config $config, $context $context )
Abstract: makes changes to the attributes dependent on multiple values.
Abstract: makes changes to the attributes dependent on multiple values.
Parameters
- $attr
$attr Assoc array of attributes, usually from HTMLPurifier_Token_Tag::$attr
- $config
$config Mandatory HTMLPurifier_Config object.
- $context
$context Mandatory HTMLPurifier_Context object
Returns
Processed attribute array.
|
Properties summary
protected
|
$attr
|
|
#
Name of boolean attribute that is trigger
Name of boolean attribute that is trigger
|
protected
|
$css
|
|
#
CSS declarations to add to style, needs trailing semicolon
CSS declarations to add to style, needs trailing semicolon
|