ILIAS
release_5-2 Revision v5.2.25-18-g3f80b82851
|
Decorator which enables !important to be used in CSS values. More...
Public Member Functions | |
__construct ($def, $allow=false) | |
validate ($string, $config, $context) | |
Intercepts and removes !important if necessary. More... | |
Public Member Functions inherited from HTMLPurifier_AttrDef | |
validate ($string, $config, $context) | |
Validates and cleans passed string according to a definition. More... | |
parseCDATA ($string) | |
Convenience method that parses a string as if it were CDATA. More... | |
make ($string) | |
Factory method for creating this class from a string. More... | |
Data Fields | |
$def | |
HTMLPurifier_AttrDef More... | |
$allow | |
bool More... | |
Data Fields inherited from HTMLPurifier_AttrDef | |
$minimized = false | |
Tells us whether or not an HTML attribute is minimized. More... | |
$required = false | |
Tells us whether or not an HTML attribute is required. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from HTMLPurifier_AttrDef | |
mungeRgb ($string) | |
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. More... | |
expandCSSEscape ($string) | |
Parses a possibly escaped CSS string and returns the "pure" version of it. More... | |
Decorator which enables !important to be used in CSS values.
Definition at line 6 of file ImportantDecorator.php.
HTMLPurifier_AttrDef_CSS_ImportantDecorator::__construct | ( | $def, | |
$allow = false |
|||
) |
HTMLPurifier_AttrDef | $def | Definition to wrap |
bool | $allow | Whether or not to allow !important |
Definition at line 21 of file ImportantDecorator.php.
HTMLPurifier_AttrDef_CSS_ImportantDecorator::validate | ( | $string, | |
$config, | |||
$context | |||
) |
Intercepts and removes !important if necessary.
string | $string | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Definition at line 34 of file ImportantDecorator.php.
References $config.
HTMLPurifier_AttrDef_CSS_ImportantDecorator::$allow |
HTMLPurifier_AttrDef_CSS_ImportantDecorator::$def |
Definition at line 11 of file ImportantDecorator.php.
Referenced by __construct().