symfony API

sfValidatorDateRange 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:

sfValidatorDateRange validates a range of date. It also converts the input values to valid dates.

Method Details

  • configure ($options, $messages) Browse code

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

    Configures the current validator.


    Available options:

    * from_date: The from date validator (required)
    * to_date: The to date validator (required)
    * from_field: The name of the "from" date field (optional, default: from)
    * to_field: The name of the "to" date field (optional, default: to)

  • doClean () Browse code

    @see sfValidatorBase