Esempio n. 1
0
 /**
  * Configures the current widget.
  *
  * Available options:
  *
  *  * with_empty:      Whether to add the empty checkbox (true by default)
  *  * empty_label:     The label to use when using an empty checkbox
  *  * template:        The template used for from date and to date
  *                     Available placeholders: %from_date%, %to_date%
  *  * filter_template: The template to use to render the widget
  *                     Available placeholders: %date_range%, %empty_checkbox%, %empty_label%
  *
  * @param array $options     An array of options
  * @param array $attributes  An array of default HTML attributes
  *
  * @see 
  */
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addOption('with_empty', true);
     $this->addOption('empty_label', 'is empty');
     $this->addOption('template', 'from %from_date%<br />to %to_date%');
     $this->addOption('filter_template', '%date_range%<br />%empty_checkbox% %empty_label%');
 }