Esempio n. 1
0
 /**
  * Constructor.
  *
  * Available options:
  *
  *  * id_format:       The format for the generated HTML id attributes (%s by default)
  *  * is_hidden:       true if the form widget must be hidden, false otherwise (false by default)
  *  * needs_multipart: true if the form widget needs a multipart form, false otherwise (false by default)
  *
  * @param array $options     An array of options
  * @param array $attributes  An array of default HTML attributes
  *
  * @see sfWidget
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('id_format', '%s');
     $this->addOption('is_hidden', false);
     $this->addOption('needs_multipart', false);
     parent::__construct($options, $attributes);
 }
 /**
  * Constructor.
  *
  * Available options:
  *
  *  * id_format:       The format for the generated HTML id attributes (%s by default)
  *  * is_hidden:       true if the form widget must be hidden, false otherwise (false by default)
  *  * needs_multipart: true if the form widget needs a multipart form, false otherwise (false by default)
  *  * default:         The default value to use when rendering the widget
  *  * label:           The label to use when the widget is rendered by a widget schema
  *
  * @param array $options     An array of options
  * @param array $attributes  An array of default HTML attributes
  *
  * @see sfWidget
  */
 public function __construct($options = array(), $attributes = array())
 {
     $this->addOption('id_format', '%s');
     $this->addOption('is_hidden', false);
     $this->addOption('needs_multipart', false);
     $this->addOption('default', null);
     $this->addOption('label', null);
     // http://trac.symfony-project.org/ticket/7108
     $this->addOption('help', null);
     parent::__construct($options, $attributes);
 }