1..47 # ->configure() - can add some options - takes an options array as its first argument and values override default option values - can add some message - takes a messages array as its second argument and values override default message values - throws an InvalidArgumentException if you pass some non existant options - The exception contains the non existant option names - throws an InvalidArgumentException if you pass some non existant error codes - The exception contains the non existant error codes # getRequiredOptions - returns an array of required option names - throws an RuntimeException if you don't pass a required option # ->clean() - returns a cleanup version of the data to validate - throws a sfValidatorError exception if the data does not validate - throws a sfValidatorError - does not trim whitespaces by default # ->isEmpty() - null value - empty string value - empty array value - false value not # ->getEmptyValue() - returns the representation of an empty value for this validator # ->setOption() - changes options (required for example) - can turn on whitespace trimming - throws an InvalidArgumentException if the option is not registered # ->hasOption() - returns true if the validator has the option - returns false if the validator does not have the option # ->getOption() - returns the value of an option - returns null if the option does not exist # ->addOption() - adds a new option to a validator # ->getOptions() ->setOptions() - changes all options # ->getMessages() - returns an array of all error messages # ->getMessage() - returns an error message string - returns an empty string if the message does not exist # ->setMessage() - changes the default error message string - throws an InvalidArgumentException if the message is not registered # ->setMessages() - changes all error messages # ->addMessage() - adds a new error code # ->getErrorCodes() - returns an array of error codes the validator can use # ::getCharset() ::setCharset() - returns the charset to use for validators - changes the charset to use for validators # ->asString() - returns a string representation of the validator - returns a string representation of the validator - returns a string representation of the validator - returns a string representation of the validator # ::setDefaultMessage() - sets the default message for an error - sets the default message for an error - sets the default message for an error - is ignored if the validator explicitly overrides the message - is ignored if the validator explicitly overrides the message # Looks like everything went fine.