HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_HTML_MultiLength Class Reference

Validates a MultiLength as defined by the HTML spec. More...

Inheritance diagram for HTMLPurifier_AttrDef_HTML_MultiLength:
HTMLPurifier_AttrDef_HTML_Length HTMLPurifier_AttrDef_HTML_Length HTMLPurifier_AttrDef_HTML_Pixels HTMLPurifier_AttrDef_HTML_Pixels HTMLPurifier_AttrDef_HTML_Pixels HTMLPurifier_AttrDef_HTML_Pixels HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef HTMLPurifier_AttrDef

List of all members.

Public Member Functions

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

Detailed Description

Validates a MultiLength as defined by the HTML spec.

A multilength is either a integer (pixel count), a percentage, or a relative number.

Definition at line 9 of file MultiLength.php.


Member Function Documentation

HTMLPurifier_AttrDef_HTML_MultiLength::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_HTML_Length.

Definition at line 12 of file MultiLength.php.

References $config.

Referenced by validate().

HTMLPurifier_AttrDef_HTML_MultiLength::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_HTML_Length.

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

References $config, and validate().


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