symfony API

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

sfValidatorBoolean validates a boolean. It also converts the input value to a valid boolean.

Method Details

  • configure ($options, $messages) Browse code

    $options An array of options
    $messages An array of error messages

    Configures the current validator.


    Available options:

    * true_values: The list of true values
    * false_values: The list of false values

  • doClean () Browse code

    @see sfValidatorBase