/** * Set options for an element. Accepted options are: * - label: label to associate with the element * - label_attributes: attributes to use when the label is rendered * - required: set required attribute & auto-insert the validator * - filters: set additional filters * - validators: set additional validators * * @param array|\Traversable $options * @return \Zork\Form\Element * @throws \Zend\Form\Exception\InvalidArgumentException */ public function setOptions($options) { parent::setOptions($options); if (isset($this->options['html_theme'])) { $this->setTheme($this->options['html_theme']); } if (isset($this->options['html_buttonset'])) { $this->setButtonSet($this->options['html_buttonset']); } }