API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_CSS_ImportantDecorator Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS_ImportantDecorator:
Collaboration diagram for HTMLPurifier_AttrDef_CSS_ImportantDecorator:

Public Member Functions

 __construct ($def, $allow=false)
 
 validate ($string, $config, $context)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 validate ($string, $config, $context)
 
 parseCDATA ($string)
 
 make ($string)
 

Data Fields

 $def
 
 $allow
 
- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 
 $required = false
 

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 
 expandCSSEscape ($string)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ validate()

validate (   $string,
  $config,
  $context 
)

Intercepts and removes !important if necessary

Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef.

Field Documentation

◆ $allow

$allow

@type bool

◆ $def


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