*
*
*
*
*
*
*
* @author Michael Aichler
* @version $Revision: 1849 $
* @package propel.runtime.validator
*/
class MinLengthValidator implements BasicValidator
{
/**
* @see BasicValidator::isValid()
*/
public function isValid (ValidatorMap $map, $str)
{
$len = function_exists('mb_strlen') ? mb_strlen($str) : strlen($str);
return $len >= intval($map->getValue());
}
}