public function __construct($type = 'text') { parent::__construct(); $this->_attributes = array_merge($this->_attributes, $this->_extended_attributes); // set some defaults if (in_array($type, $this->_types)) { $this->setAttribute('type', $type); } else { $this->setAttribute('type', 'text'); } }
public function __construct() { parent::__construct(); $this->_attributes = array_merge($this->_attributes, $this->_extended_attributes); $this->setTag('select'); }