/**
  * Set Attribute
  *
  * @param string $key
  * @param mixed  $value
  * @return \Zend\Form\Element|\Zend\Form\ElementInterface
  */
 public function setAttribute($key, $value)
 {
     if ('id' == $key) {
         $this->setFormId($value);
     }
     return parent::setAttribute($key, $value);
 }
Ejemplo n.º 2
0
 public function setOptions($options)
 {
     parent::setOptions($options);
     if (isset($options['save_label'])) {
         $this->setSaveButtonLabel($options['save_label']);
     }
     return $this;
 }
 public function setOptions($options)
 {
     if (!isset($options['render_summary'])) {
         $options['render_summary'] = isset($this->options['render_summary']) ? $this->options['render_summary'] : false;
     }
     parent::setOptions($options);
     if (isset($options['form_id'])) {
         $this->setFormId($options['form_id']);
     }
     return $this;
 }