public function __construct($name = null) { $this->_tag = 'select'; parent::__construct(); $this->_attributes->register('name', $name); $this->_attributes->register('size'); $this->_attributes->register('multiple'); $this->_attributes->register('disabled'); $this->_attributes->register('tab_index'); $this->_events->register('onfocus'); $this->_events->register('onblur'); $this->_events->register('onchange'); }
public function __construct($label = '') { $this->_tag = 'optgroup'; parent::__construct(); $this->_attributes->register('label', $label); }