Exemple #1
0
 public function __construct($label, array $options = null)
 {
     if (null !== $options) {
         $this->addOptions($options);
     }
     parent::__construct($label);
 }
Exemple #2
0
 /**
  * @param string $value the value of the option (used for value="$value")
  * @param string $label label of the option (used for <option>$label</option>
  */
 public function __construct($value, $label = null)
 {
     $this->value = $value;
     parent::__construct($label);
 }