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

isValid(ValidatorMap $map, $value)

Details

at line 28
public isValid(ValidatorMap $map, $value)

Parameters

ValidatorMap $map
$value