sfValidatorAnd validates an input value if all validators passes.
Method Summary
-
addValidator($validator)
Adds a validator.
-
asString($indent)
-
configure($options = array(), $messages = array())
Configures the current validator.
-
doClean($value)
-
array
getValidators()
Returns an array of the validators.
-
__construct($validators = null, $options = array(), $messages = array())
Constructor.
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 |
A sfValidatorBase instance
|
Adds a validator.
-
-
configure ($options = array(), $messages = array())
Browse code
| $options |
An array of options
|
| $messages |
An array of error messages
|
Configures the current validator.
Available options: * halt_on_error: Whether to halt on the first error or not (false by default)
-
-
(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
|