/**
  * Constructor.
  *
  * Available options:
  *
  *  * label_separator: The separator to use between the input checkbox and the label
  *  * class:           The class to use for the main <ul> tag
  *  * separator:       The separator to use between each input checkbox
  *  * formatter:       A callable to call to format the checkbox choices
  *                     The formatter callable receives the widget and the array of inputs as arguments
  *  * template:        The template to use when grouping option in groups (%group% %options%)
  *
  * @param array $options     An array of options
  * @param array $attributes  An array of default HTML attributes
  *
  * @see sfWidgetFormChoiceBase
  */
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     $this->addOption('choices', self::getStatesForWidget());
     $this->addOption('class', '');
     $this->addOption('all_checkbox', self::getAllCheckBox());
     $this->addOption('label_separator', '&nbsp;');
     $this->addOption('separator', "\n");
     $this->addOption('formatter', array($this, 'formatter'));
     $this->addOption('template', '%group% %options%');
 }
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
     // option value for 'all' checkbox. Set to a valid option to enable the 'All'
     // checkbox.
     $this->addOption('show_all_option', false);
     $this->addOption('all_option_label', __('All'));
     $this->addOption('all_option_first', true);
     // Separator between label and input
     $this->addOption('label_separator', '&nbsp;');
     // Separator between inputs
     $this->addOption('separator', "\n");
     // Formatter class
     $this->addOption('formatter', array($this, 'formatter'));
     // Label first (if true)
     $this->addOption('label_first', true);
     // Container tag for one label : input pair
     $this->addOption('item_container', null);
     // Container tag for widget. Defaults to 'div' if not supplied or null.
     $this->addOption('widget_container', 'div');
     // Container tag for
     $this->addOption('template', '%group% %options%');
     $this->addOption('class', 'checkbox_group');
 }
 protected function configure($options = array(), $attributes = array())
 {
     parent::configure($options, $attributes);
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  * dynamic_attributes:        Attributs HTML à rajouter à partir du modèle. C'est un array(attribute_name => method)
  *
  * @see sfWidgetFormSelectCheckbox
  */
 protected function configure($options = array(), $attributes = array())
 {
     $this->addOption('dynamic_attributes', array());
     parent::configure($options, $attributes);
 }