public function addOption($value, $label, $properties = array()) { $option = new HtmlElement(false, 'option', $properties); $option->setProperty('value', $value); $option->setContent($label); $this->html->setContent($option, $value); }
public function setName($name) { $this->html->setProperty('name', $name); $this->html->setProperty('id', $name); }