Class

RequiredValidator

class RequiredValidator implements BasicValidator

A validator for required fields.

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

Methods

boolean isValid(ValidatorMap $map, string $str)

Details

at line 38
public boolean isValid(ValidatorMap $map, string $str)

Parameters

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

Return Value

boolean TRUE if valid, error message otherwise

See also

BasicValidator::isValid()