HTMLPurifier_AttrDef_Integer Class Reference

Validates an integer. More...

List of all members.

Public Member Functions

 __construct ($negative=true, $zero=true, $positive=true)
 
Parameters:
$negative Bool indicating whether or not negative values are allowed

 validate ($integer, $config, $context)
 __construct ($negative=true, $zero=true, $positive=true)
 
Parameters:
$negative Bool indicating whether or not negative values are allowed

 validate ($integer, $config, $context)

Protected Attributes

 $negative = true
 Bool indicating whether or not negative values are allowed.
 $zero = true
 Bool indicating whether or not zero is allowed.
 $positive = true
 Bool indicating whether or not positive values are allowed.


Detailed Description

Validates an integer.

Note:
While this class was modeled off the CSS definition, no currently allowed CSS uses this type. The properties that do are: widows, orphans, z-index, counter-increment, counter-reset. Some of the HTML attributes, however, find use for a non-negative version of this.

Definition at line 10 of file Integer.php.


Constructor & Destructor Documentation

HTMLPurifier_AttrDef_Integer::__construct ( negative = true,
zero = true,
positive = true 
)

Parameters:
$negative Bool indicating whether or not negative values are allowed

Parameters:
$zero Bool indicating whether or not zero is allowed
$positive Bool indicating whether or not positive values are allowed

Definition at line 33 of file Integer.php.

References $negative, $positive, and $zero.

HTMLPurifier_AttrDef_Integer::__construct ( negative = true,
zero = true,
positive = true 
)

Parameters:
$negative Bool indicating whether or not negative values are allowed

Parameters:
$zero Bool indicating whether or not zero is allowed
$positive Bool indicating whether or not positive values are allowed

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


Member Function Documentation

HTMLPurifier_AttrDef_Integer::validate ( integer,
config,
context 
)

Definition at line 41 of file Integer.php.

HTMLPurifier_AttrDef_Integer::validate ( integer,
config,
context 
)

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


Member Data Documentation

HTMLPurifier_AttrDef_Integer::$negative = true [protected]

Bool indicating whether or not negative values are allowed.

Definition at line 16 of file Integer.php.

Referenced by __construct().

HTMLPurifier_AttrDef_Integer::$zero = true [protected]

Bool indicating whether or not zero is allowed.

Definition at line 21 of file Integer.php.

Referenced by __construct().

HTMLPurifier_AttrDef_Integer::$positive = true [protected]

Bool indicating whether or not positive values are allowed.

Definition at line 26 of file Integer.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