HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_CSS_Background Class Reference

Validates shorthand CSS property background. More...

Inheritance diagram for HTMLPurifier_AttrDef_CSS_Background:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

 __construct ($config)
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.
 __construct ($config)
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.

Protected Attributes

 $info
 Local copy of component validators.

Detailed Description

Validates shorthand CSS property background.

Warning:
Does not support url tokens that have internal spaces.

Definition at line 7 of file Background.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_Background::__construct ( config)

Definition at line 16 of file Background.php.

References $config, and $def.

HTMLPurifier_AttrDef_CSS_Background::__construct ( config)

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

References $config, and $def.


Member Function Documentation

HTMLPurifier_AttrDef_CSS_Background::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 25 of file Background.php.

References $config, HTMLPurifier_AttrDef::mungeRgb(), and HTMLPurifier_AttrDef::parseCDATA().

Referenced by validate().

HTMLPurifier_AttrDef_CSS_Background::validate ( string,
config,
context 
)

Validates and cleans passed string according to a definition.

Parameters:
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

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

References $config, HTMLPurifier_AttrDef::mungeRgb(), HTMLPurifier_AttrDef::parseCDATA(), and validate().


Member Data Documentation

HTMLPurifier_AttrDef_CSS_Background::$info [protected]

Local copy of component validators.

Note:
See HTMLPurifier_AttrDef_Font::$info for a similar impl.

Definition at line 14 of file Background.php.


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