. */ require_once 'propel/validator/BasicValidator.php'; /** * A validator for valid values (e.g. for enum fields) * * * * * * * * * * @author Michael Aichler * @version $Revision: 536 $ * @package propel.validator */ class ValidValuesValidator implements BasicValidator { public function isValid (ValidatorMap $map, $str) { return in_array($str, explode("|", $map->getValue())); } }