/** * Configures the current validator. * * @param array $options An array of options * @param array $messages An array of error messages * * @see sfValidatorBase */ public function configure($options = array(), $messages = array()) { parent::configure($options, $messages); $this->setOption('date_format', sfWidgetFormInputDate::getRegexp()); $this->setOption('date_format_error', sfWidgetFormInputDate::getDateFormat()); }