symfony API

sfValidatorOr Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

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

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 , setDefaultMessage , setDefaultMessages , setDefaultOptions , setInvalidMessage , setMessage , setMessages , setOption , setOptions , setRequiredMessage , __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