HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_CSS_Font Class Reference

Validates shorthand CSS property font. More...

Inheritance diagram for HTMLPurifier_AttrDef_CSS_Font:
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 = array()
 Local copy of component validators.

Detailed Description

Validates shorthand CSS property font.

Definition at line 6 of file Font.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_Font::__construct ( config)

Definition at line 19 of file Font.php.

References $config, and $def.

HTMLPurifier_AttrDef_CSS_Font::__construct ( config)

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

References $config, and $def.


Member Function Documentation

HTMLPurifier_AttrDef_CSS_Font::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 29 of file Font.php.

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

HTMLPurifier_AttrDef_CSS_Font::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 9228 of file HTMLPurifier.standalone.php.

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


Member Data Documentation

HTMLPurifier_AttrDef_CSS_Font::$info = array() [protected]

Local copy of component validators.

Note:
If we moved specific CSS property definitions to their own classes instead of having them be assembled at run time by CSSDefinition, this wouldn't be necessary. We'd instantiate our own copies.

Definition at line 17 of file Font.php.


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