Propel API
Class

TypeValidator

class TypeValidator implements BasicValidator

A validator for validating the (PHP) type of the value submitted.

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

<validator column="some_int">
<rule name="type" value="integer" message="Please specify an integer value for some_int column." />
</validator>
</code>

Methods

boolean isValid(ValidatorMap $map, mixed $value)

Details

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

Parameters

ValidatorMap $map
mixed $value

Return Value

boolean

See also

BasicValidator::isValid()