HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_CSS_Percentage Class Reference

Validates a Percentage as defined by the CSS spec. More...

Inheritance diagram for HTMLPurifier_AttrDef_CSS_Percentage:
HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

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

Protected Attributes

 $number_def
 Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation.

Detailed Description

Validates a Percentage as defined by the CSS spec.

Definition at line 6 of file Percentage.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_Percentage::__construct ( non_negative = false)
Parameters:
Boolindicating whether to forbid negative values

Definition at line 17 of file Percentage.php.

HTMLPurifier_AttrDef_CSS_Percentage::__construct ( non_negative = false)
Parameters:
Boolindicating whether to forbid negative values

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


Member Function Documentation

HTMLPurifier_AttrDef_CSS_Percentage::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 21 of file Percentage.php.

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

HTMLPurifier_AttrDef_CSS_Percentage::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 9820 of file HTMLPurifier.standalone.php.

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


Member Data Documentation

HTMLPurifier_AttrDef_CSS_Percentage::$number_def [protected]

Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation.

Definition at line 12 of file Percentage.php.


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