symfony API

sfValidatorString Class

« Back to API menu

1.1 API OpenSearch

Packages

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

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

    $value

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.