HTMLPurifier_AttrDef_CSS_Number Class Reference

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

Inheritance diagram for HTMLPurifier_AttrDef_CSS_Number:

HTMLPurifier_AttrDef_CSS_AlphaValue HTMLPurifier_AttrDef_CSS_AlphaValue

List of all members.

Public Member Functions

 __construct ($non_negative=false)
 
Parameters:
$non_negative Bool indicating whether negatives are forbidden

 validate ($number, $config, $context)
 
Warning:
Some contexts do not pass $config, $context.

 __construct ($non_negative=false)
 
Parameters:
$non_negative Bool indicating whether negatives are forbidden

 validate ($number, $config, $context)
 
Warning:
Some contexts do not pass $config, $context.


Protected Attributes

 $non_negative = false
 Bool indicating whether or not only positive values allowed.


Detailed Description

Validates a number as defined by the CSS spec.

Definition at line 6 of file Number.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_CSS_Number::__construct ( non_negative = false  ) 

Parameters:
$non_negative Bool indicating whether negatives are forbidden

Definition at line 17 of file Number.php.

References $non_negative.

HTMLPurifier_AttrDef_CSS_Number::__construct ( non_negative = false  ) 

Parameters:
$non_negative Bool indicating whether negatives are forbidden

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


Member Function Documentation

HTMLPurifier_AttrDef_CSS_Number::validate ( number,
config,
context 
)

Warning:
Some contexts do not pass $config, $context.

These variables should not be used without checking HTMLPurifier_Length

Reimplemented in HTMLPurifier_AttrDef_CSS_AlphaValue, and HTMLPurifier_AttrDef_CSS_AlphaValue.

Definition at line 25 of file Number.php.

HTMLPurifier_AttrDef_CSS_Number::validate ( number,
config,
context 
)

Warning:
Some contexts do not pass $config, $context.

These variables should not be used without checking HTMLPurifier_Length

Reimplemented in HTMLPurifier_AttrDef_CSS_AlphaValue, and HTMLPurifier_AttrDef_CSS_AlphaValue.

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


Member Data Documentation

HTMLPurifier_AttrDef_CSS_Number::$non_negative = false [protected]

Bool indicating whether or not only positive values allowed.

Definition at line 12 of file Number.php.

Referenced by __construct().


The documentation for this class was generated from the following files:
Generated on Thu Jun 19 18:47:28 2008 for HTMLPurifier by  doxygen 1.5.3