sfValidatorDateRange validates a range of date. It also converts the input values to valid dates.
Method Summary
-
configure($options, $messages)
Configures the current validator.
-
doClean()
@see 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 |
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)
-
@see sfValidatorBase
|