symfony API

sfValidatorUrl Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

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

sfValidatorUrl validates Urls.

Inheritence

sfValidatorUrl  <  sfValidatorRegex < sfValidatorString < sfValidatorBase

Method Summary

  • configure($options, $messages)
    Available options:
  • string generateRegex()
    Generates the current validator's regular expression.

Methods inherited from sfValidatorRegex

configure , doClean , getPattern

Methods inherited from sfValidatorString

configure , doClean

Methods inherited from sfValidatorBase

addMessage , addOption , addRequiredOption , asString , clean , configure , doClean , getCharset , getDefaultMessages , getDefaultOptions , getEmptyValue , getErrorCodes , getMessage , getMessages , getMessagesWithoutDefaults , getOption , getOptions , getOptionsWithoutDefaults , getRequiredOptions , hasOption , isEmpty , setCharset , setDefaultMessage , setDefaultMessages , setDefaultOptions , setInvalidMessage , setMessage , setMessages , setOption , setOptions , setRequiredMessage , __construct

Method Details

  • configure ($options, $messages) Browse code

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

    Available options:


    * protocols: An array of acceptable URL protocols (http, https, ftp and ftps by default)

  • (string) generateRegex () Browse code

    Generates the current validator's regular expression.