Propel API
Class

MaxValueValidator

class MaxValueValidator implements BasicValidator

A validator for maximum values.

Below is an example usage for your Propel xml schema file.

<code>
<column name="articles" type="INTEGER" required="true" />

<validator column="articles">
<rule name="minValue" value="1" message="Minimum value for selected articles is ${value} !" />
<rule name="maxValue" value="10" message="Maximum value for selected articles is ${value} !" />
</validator>
</code>

Methods

boolean isValid(ValidatorMap $map, mixed $value)

Details

at line 39
public boolean isValid(ValidatorMap $map, mixed $value)

Parameters

ValidatorMap $map
mixed $value

Return Value

boolean

See also

BasicValidator::isValid()