Class

eZIntegerValidator

class eZIntegerValidator extends eZRegExpValidator

Constants

STATE_ACCEPTED

STATE_INTERMEDIATE

STATE_INVALID

Properties

$RegExpRule
$MinValue
$MaxValue

Methods

__construct(int|bool $min = false, int|bool $max = false)

Constructor

setRegExpRule($rule)

from eZRegExpValidator
validate($text)

fixup($text)

setRange($min, $max)

Details

at line 25
public __construct(int|bool $min = false, int|bool $max = false)

Constructor

Parameters

int|bool $min
int|bool $max

in eZRegExpValidator at line 29
public setRegExpRule($rule)

Parameters

$rule

at line 45
public validate($text)

Parameters

$text

at line 57
public fixup($text)

Parameters

$text

at line 37
public setRange($min, $max)

Parameters

$min
$max