|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($negative=true, $zero=true, $positive=true) | |
| validate ($integer, $config, $context) | |
Protected Attributes | |
| $negative = true | |
| $zero = true | |
| $positive = true | |
Validates an integer.
Definition at line 10 of file Integer.php.
| __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.
| 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.

$negative = true [protected] |
Bool indicating whether or not negative values are allowed
Definition at line 16 of file Integer.php.
$positive = true [protected] |
Bool indicating whether or not positive values are allowed
Definition at line 26 of file Integer.php.
$zero = true [protected] |
Bool indicating whether or not zero is allowed
Definition at line 21 of file Integer.php.