symfony API

sfValidatorInteger Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu

1.4 API OpenSearch


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

sfValidatorInteger validates an integer. It also converts the input value to an integer.

Method Details

  • configure ($options, $messages) Browse code

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

    Configures the current validator.

    Available options:

    * max: The maximum value allowed
    * min: The minimum value allowed

    Available error codes:

    * max
    * min

  • doClean () Browse code

    @see sfValidatorBase