symfony API

sfValidatorAnd Class

« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

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 , 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 () Browse code

    @see sfValidatorBase

  • 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

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.