.
*/
require_once 'propel/validator/BasicValidator.php';
/**
* A validator for required fields.
*
* Below is an example usage for your Propel xml schema file.
*
*
*
*
*
*
*
*
*
* @author Michael Aichler
* @version $Revision: 536 $
* @package propel.validator
*/
class RequiredValidator implements BasicValidator
{
/**
* @see BasicValidator::isValid()
*/
public function isValid (ValidatorMap $map, $str)
{
return ($str !== null && $str !== "");
}
}