Class

eZFloatValidator

class eZFloatValidator extends eZRegExpValidator

Constants

STATE_ACCEPTED

STATE_INTERMEDIATE

STATE_INVALID

Properties

$RegExpRule
$MinValue
$MaxValue

Methods

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

Constructor

setRegExpRule($rule)

from eZRegExpValidator
validate($text)

fixup($text)

setRange($min, $max)

Details

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

Constructor

Parameters

float|bool $min
float|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