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)
getEmptyValue , __construct , asString , getDefaultMessages , getOptionsWithoutDefaults , setCharset , getOptions , getMessagesWithoutDefaults , configure , setMessages , doClean , getCharset , clean , setMessage , setDefaultOptions , isEmpty , getMessages , getOption , setOptions , addMessage , setDefaultMessages , getRequiredOptions , addOption , getMessage , hasOption , addRequiredOption , getDefaultOptions , setOption , getErrorCodes
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
-
|