Class

MaxLengthValidator

class MaxLengthValidator implements BasicValidator

A validator for maximum string length.

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

Note that if you have specified the size attribute in the column tag you do not have to specify it as value in the validator rule again as this is done automatically.

Methods

boolean isValid(ValidatorMap $map, string $str)

Details

at line 40
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