public function __construct($label)
 {
     $this->label = $label;
     parent::__construct();
 }
  /**
   * Constructor.
   *
   * Available options:
   *
   *  - value_attribute_value: The "value" attribute value to set for the checkbox
   *
   * @param array  $options     An array of options
   * @param array  $attributes  An array of default HTML attributes
   *
   * @see sfWidgetFormInput
   */
  public function __construct($options = array(), $attributes = array())
  {
    $this->addOption('value_attribute_value');

    parent::__construct($options, $attributes);
  }
 /**
  * The label is the only reason this widget exists, so don't bother using an option for it,
  * the constructor is more succinct
  * @param mixed $label
  * @param mixed $options
  * @param mixed $attributes
  */
 public function __construct($label, $options = array(), $attributes = array())
 {
     $this->label = $label;
     parent::__construct($options, $attributes);
 }