*
*
*
*
*
*
*
*
* @author Michael Aichler
* @version $Revision: 1612 $
* @package propel.runtime.validator
*/
class MaxValueValidator implements BasicValidator
{
/**
* @see BasicValidator::isValid()
*/
public function isValid (ValidatorMap $map, $value)
{
if (is_null($value) == false && is_numeric($value) == true) {
return intval($value) <= intval($map->getValue());
}
return false;
}
}