sfValidatorOr validates an input value if at least one validator passes.
Method Summary
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
-
addValidator ($validator)
Browse code
| $validator |
An sfValidatorBase instance
|
Adds a validator.
-
-
configure ($options = array(), $messages = array())
Browse code
-
-
(array) getValidators ()
Browse code
Returns an array of the validators.
returns An array of sfValidatorBase instances
-
__construct ($validators = null, $options = array(), $messages = array())
Browse code
| $validators |
Initial validators
|
| $options |
An array of options
|
| $messages |
An array of error messages
|
Constructor.
The first argument can be: * null * a sfValidatorBase instance * an array of sfValidatorBase instances
|