symfony API

sfValidatorAnd Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.4 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.4 version. Switch to:

sfValidatorAnd validates an input value if all validators passes.

Inheritence

sfValidatorAnd  <  sfValidatorBase

Method Summary

Methods inherited from sfValidatorBase

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 , setMessage , setMessages , setOption , setOptions , __construct

Method Details

  • addValidator ($validator) Browse code

    $validator A sfValidatorBase instance

    Adds a validator.

  • asString () Browse code

    @see sfValidatorBase

  • configure ($options, $messages) 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)

  • doClean () Browse code

    @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