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 , setDefaultMessage , setDefaultMessages , setDefaultOptions , setInvalidMessage , setMessage , setMessages , setOption , setOptions , setRequiredMessage , __construct
Method Details
-
addValidator ($validator)
Browse code
| $validator |
An sfValidatorBase instance |
Adds a validator.
-
@see sfValidatorBase
-
@see sfValidatorBase
-
@see sfValidatorBase
-
(array) getValidators ()
Browse code
Returns an array of the validators.
returns An array of sfValidatorBase instances
-
__construct ($validators, $options, $messages)
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
|