symfony API

sfValidatorOr Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« 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.

sfValidatorOr validates an input value if at least one validator passes.

Inheritence

sfValidatorOr  <  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 An 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