HTMLPurifier 4.4.0
HTMLPurifier_AttrDef_HTML_Pixels Class Reference

Validates an integer representation of pixels according to the HTML spec. More...

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

List of all members.

Public Member Functions

 __construct ($max=null)
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.
 make ($string)
 Factory method for creating this class from a string.
 __construct ($max=null)
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.
 make ($string)
 Factory method for creating this class from a string.

Protected Attributes

 $max

Detailed Description

Validates an integer representation of pixels according to the HTML spec.

Definition at line 6 of file Pixels.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_HTML_Pixels::__construct ( max = null)

Definition at line 11 of file Pixels.php.

References $max.

HTMLPurifier_AttrDef_HTML_Pixels::__construct ( max = null)

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

References $max.


Member Function Documentation

HTMLPurifier_AttrDef_HTML_Pixels::make ( string)

Factory method for creating this class from a string.

Parameters:
$stringString construction info
Returns:
Created AttrDef object corresponding to $string

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 39 of file Pixels.php.

References $max.

HTMLPurifier_AttrDef_HTML_Pixels::make ( string)

Factory method for creating this class from a string.

Parameters:
$stringString construction info
Returns:
Created AttrDef object corresponding to $string

Reimplemented from HTMLPurifier_AttrDef.

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

References $max.

HTMLPurifier_AttrDef_HTML_Pixels::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.

Reimplemented in HTMLPurifier_AttrDef_HTML_Length, HTMLPurifier_AttrDef_HTML_MultiLength, HTMLPurifier_AttrDef_HTML_Length, and HTMLPurifier_AttrDef_HTML_MultiLength.

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

HTMLPurifier_AttrDef_HTML_Pixels::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.

Reimplemented in HTMLPurifier_AttrDef_HTML_Length, HTMLPurifier_AttrDef_HTML_MultiLength, HTMLPurifier_AttrDef_HTML_Length, and HTMLPurifier_AttrDef_HTML_MultiLength.

Definition at line 15 of file Pixels.php.


Member Data Documentation

HTMLPurifier_AttrDef_HTML_Pixels::$max [protected]

Definition at line 9 of file Pixels.php.

Referenced by __construct(), and make().


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