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.
◆ __construct()
__construct |
( |
|
$negative = true , |
|
|
|
$zero = true , |
|
|
|
$positive = true |
|
) |
| |
- Paramètres
-
$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 |
◆ validate()
validate |
( |
|
$integer, |
|
|
|
$config, |
|
|
|
$context |
|
) |
| |
◆ $negative
Whether or not negative values are allowed. @type bool
◆ $positive
Whether or not positive values are allowed. @type bool
◆ $zero
Whether or not zero is allowed. @type bool
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/Integer.php