.
*/
require_once 'propel/validator/BasicValidator.php';
/**
* A validator for minimum values.
*
* Below is an example usage for your Propel xml schema file.
*
*
*
*
*
*
*
*
*
*
* @author Michael Aichler
* @version $Revision: 536 $
* @package propel.validator
*/
class MinValueValidator implements BasicValidator
{
/**
* @see BasicValidator::isValid()
*/
public function isValid (ValidatorMap $map, $value)
{
if(is_null($value) == false && is_numeric($value)) {
return intval($value) >= intval($map->getValue());
}
return false;
}
}