Class

MatchValidator

class MatchValidator implements BasicValidator

A validator for regular expressions.

This validator will return true, when the passed value matches the regular expression.

This class replaces the former class MaskValidator

If you do want to test if the value does not match an expression, you can use the MatchValidator class instead.

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

Methods

boolean isValid(ValidatorMap $map, string $str)

Whether the passed string matches regular expression.

Details

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

Whether the passed string matches regular expression.

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