/** * @param $name string * @param $label string */ public function __construct($name, $label) { parent::__construct($name); $this->label = $label; }
/** * @param string $name * @param string $title * @param array $options */ public function __construct($name, $title, array $options) { parent::__construct($name, $title); $this->options = $options; }
/** * @param $name string * @param $label string */ public function __construct($name, $label = '', $title = '') { parent::__construct($name, $label); $this->setAttribute('title', $title); }
/** * @param $name * @param array $options */ public function __construct($name, $options, $label = '', $tabindex = null) { parent::__construct($name, $label); $this->options = $options; $this->tabindex = $tabindex; }