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 |
|
) |
| |
- Parameters
-
$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
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/xoops_lib/modules/protector/library/HTMLPurifier/AttrDef/Integer.php