sfValidatorString validates a string. It also converts the input value to a
string.
Method Summary
-
configure($options = array(), $messages = array())
Configures the current validator.
-
doClean($value)
addMessage , addOption , addRequiredOption , asString , clean , configure , doClean , getCharset , getDefaultMessages , getDefaultOptions , getEmptyValue , getErrorCodes , getMessage , getMessages , getMessagesWithoutDefaults , getOption , getOptions , getOptionsWithoutDefaults , getRequiredOptions , hasOption , isEmpty , setCharset , setDefaultMessages , setDefaultOptions , setInvalidMessage , setMessage , setMessages , setOption , setOptions , setRequiredMessage , __construct
Method Details
-
configure ($options = array(), $messages = array())
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
-
|