symfony API

sfValidatorString Class

« Back to API menu

action

addon

autoload

cache

command

config

controller

creole

database

debug

exception

filter

form

generator

helper

i18n

log

plugin

propel

request

response

routing

storage

task

test

user

util

validator

view

widget

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())

    $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)