HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_CSS_ImportantDecorator Class Reference

Decorator which enables !important to be used in CSS values. More...

Inheritance diagram for HTMLPurifier_AttrDef_CSS_ImportantDecorator:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

 __construct ($def, $allow=false)
 validate ($string, $config, $context)
 Intercepts and removes !important if necessary.
 __construct ($def, $allow=false)
 validate ($string, $config, $context)
 Intercepts and removes !important if necessary.

Public Attributes

 $def
 $allow

Detailed Description

Decorator which enables !important to be used in CSS values.

Definition at line 6 of file ImportantDecorator.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_ImportantDecorator::__construct ( def,
allow = false 
)
Parameters:
$defDefinition to wrap
$allowWhether or not to allow !important

Definition at line 14 of file ImportantDecorator.php.

References $allow, and $def.

HTMLPurifier_AttrDef_CSS_ImportantDecorator::__construct ( def,
allow = false 
)
Parameters:
$defDefinition to wrap
$allowWhether or not to allow !important

Definition at line 9586 of file HTMLPurifier.standalone.php.

References $allow, and $def.


Member Function Documentation

HTMLPurifier_AttrDef_CSS_ImportantDecorator::validate ( string,
config,
context 
)

Intercepts and removes !important if necessary.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 21 of file ImportantDecorator.php.

References $config.

HTMLPurifier_AttrDef_CSS_ImportantDecorator::validate ( string,
config,
context 
)

Intercepts and removes !important if necessary.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 9593 of file HTMLPurifier.standalone.php.

References $config.


Member Data Documentation

HTMLPurifier_AttrDef_CSS_ImportantDecorator::$allow

Definition at line 8 of file ImportantDecorator.php.

Referenced by __construct().

HTMLPurifier_AttrDef_CSS_ImportantDecorator::$def

Definition at line 8 of file ImportantDecorator.php.

Referenced by __construct().


The documentation for this class was generated from the following files: