|
HTMLPurifier 4.4.0
|
Validates an integer. More...
Public Member Functions | |
| __construct ($negative=true, $zero=true, $positive=true) | |
| validate ($integer, $config, $context) | |
| Validates and cleans passed string according to a definition. | |
| __construct ($negative=true, $zero=true, $positive=true) | |
| validate ($integer, $config, $context) | |
| Validates and cleans passed string according to a definition. | |
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. | |
Validates an integer.
Definition at line 10 of file Integer.php.
| HTMLPurifier_AttrDef_Integer::__construct | ( | $ | negative = true, |
| $ | zero = true, |
||
| $ | positive = true |
||
| ) |
| $negative | Bool indicating whether or not negative values are allowed |
| $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.
| HTMLPurifier_AttrDef_Integer::__construct | ( | $ | negative = true, |
| $ | zero = true, |
||
| $ | positive = true |
||
| ) |
| $negative | Bool indicating whether or not negative values are allowed |
| $zero | Bool indicating whether or not zero is allowed |
| $positive | Bool indicating whether or not positive values are allowed |
Definition at line 8395 of file HTMLPurifier.standalone.php.
| HTMLPurifier_AttrDef_Integer::validate | ( | $ | string, |
| $ | config, | ||
| $ | context | ||
| ) |
Validates and cleans passed string according to a definition.
| $string | String to be validated and cleaned. |
| $config | Mandatory HTMLPurifier_Config object. |
| $context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef.
Definition at line 41 of file Integer.php.
References HTMLPurifier_AttrDef::parseCDATA().
| HTMLPurifier_AttrDef_Integer::validate | ( | $ | string, |
| $ | config, | ||
| $ | context | ||
| ) |
Validates and cleans passed string according to a definition.
| $string | String to be validated and cleaned. |
| $config | Mandatory HTMLPurifier_Config object. |
| $context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef.
Definition at line 8403 of file HTMLPurifier.standalone.php.
References HTMLPurifier_AttrDef::parseCDATA().
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::$positive = true [protected] |
Bool indicating whether or not positive values are allowed.
Definition at line 26 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().