extends |
HTMLPurifier_AttrDef |
|---|
Validates an integer.
| Methods | ||||||||
|---|---|---|---|---|---|---|---|---|
public
|
__construct($negative = true, $zero = true, $positive = true)
|
# | ||||||
public
|
validate(string $integer, HTMLPurifier_Config $config, HTMLPurifier_Context $context): bool|string
Validates and cleans passed string according to a definition.
Validates and cleans passed string according to a definition. Parameters
Implements |
# | ||||||
| Methods inherited from HTMLPurifier_AttrDef |
|---|
parseCDATA(), make(), mungeRgb(), expandCSSEscape() |
| Properties | |||
|---|---|---|---|
protected
|
|
$negative = true
Whether or not negative values are allowed.
Whether or not negative values are allowed. |
# |
protected
|
|
$zero = true
Whether or not zero is allowed.
Whether or not zero is allowed. |
# |
protected
|
|
$positive = true
Whether or not positive values are allowed.
Whether or not positive values are allowed. |
# |
| Properties inherited from HTMLPurifier_AttrDef |
|---|
$minimized, $required |