Class HTMLPurifier_AttrTransform_BoolToCSS

Description

Pre-transform that changes converts a boolean attribute to fixed CSS

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 10009)

HTMLPurifier_AttrTransform
   |
   --HTMLPurifier_AttrTransform_BoolToCSS
Variable Summary
mixed $attr
mixed $css
Method Summary
HTMLPurifier_AttrTransform_BoolToCSS __construct ($attr $attr, $css $css)
void transform ( $attr,  $config,  $context)
Variables
mixed $attr (line 10014)

Name of boolean attribute that is trigger

  • access: protected
mixed $css (line 10019)

CSS declarations to add to style, needs trailing semicolon

  • access: protected
Methods
Constructor __construct (line 10025)
  • access: public
HTMLPurifier_AttrTransform_BoolToCSS __construct ($attr $attr, $css $css)
  • $attr $attr: string attribute name to convert from
  • $css $css: string CSS declarations to add to style (needs semicolon)
transform (line 10030)
  • access: public
void transform ( $attr,  $config,  $context)
  • $attr
  • $config
  • $context

Redefinition of:
HTMLPurifier_AttrTransform::transform()
Abstract: makes changes to the attributes dependent on multiple values.

Inherited Methods

Inherited From HTMLPurifier_AttrTransform

HTMLPurifier_AttrTransform::confiscateAttr()
HTMLPurifier_AttrTransform::prependCSS()
HTMLPurifier_AttrTransform::transform()

Documentation generated on Sun, 06 Mar 2011 00:24:00 -0500 by phpDocumentor 1.4.3