symfony API

sfValidatorString Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website

« Back to API menu

1.2 API OpenSearch


You are currently browsing the symfony API for the 1.2 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.

sfValidatorString validates a string. It also converts the input value to a string.

Method Details

  • configure ($options = array(), $messages = array()) Browse code

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

    Configures the current validator.

    Available options:

    * max_length: The maximum length of the string
    * min_length: The minimum length of the string

    Available error codes:

    * max_length * min_length

  • doClean ($value) Browse code