sfValidatorString validates a string. It also converts the input value to a string.
Method Summary
-
configure($options, $messages)
Configures the current validator.
-
doClean()
@see sfValidatorBase
addMessage , addOption , addRequiredOption , asString , clean , configure , doClean , getCharset , getDefaultMessages , getDefaultOptions , getEmptyValue , getErrorCodes , getMessage , getMessages , getMessagesWithoutDefaults , getOption , getOptions , getOptionsWithoutDefaults , getRequiredOptions , hasOption , isEmpty , setCharset , setDefaultMessage , setDefaultMessages , setDefaultOptions , setInvalidMessage , setMessage , setMessages , setOption , setOptions , setRequiredMessage , __construct
Method Details
-
configure ($options, $messages)
Browse code
| $options |
An array of options |
| $messages |
An array of error messages |
Configures the current validator.
Available options: * max_length: The maximum length of the string
* min_length: The minimum length of the string Available error codes: * max_length
* min_length
-
@see sfValidatorBase
|