Propel API
Interface

BasicValidator

interface BasicValidator

Basic Validator interface.

BasicValidator objects perform validation without any knowledge of column/table
context. They are simply given an input and some value and asked whether the input
is valid.

Methods

mixed isValid(ValidatorMap $map, string $str)

Determine whether a value meets the criteria specified

Details

at line 32
public mixed isValid(ValidatorMap $map, string $str)

Determine whether a value meets the criteria specified

Parameters

ValidatorMap $map A column map object for the column to be validated.
string $str a <code>String</code> to be tested

Return Value

mixed TRUE if valid, error message otherwise