/** * @see Element::defaultAttribtues */ protected function defaultAttributes() { return array_merge(parent::defaultAttributes(), array('type' => '', 'name' => '', 'value' => '')); }
protected function defaultAttributes() { return parent::defaultAttributes() + array('action' => '', 'method' => 'POST', 'name' => ''); }
/** * @see Element::beforeRender */ protected function beforeRender() { /* Do not render the label if the inner text value is empty. */ $label_val = $this->_label->text()->value(); if (!empty($label_val)) { parent::addChild($this->_label); } parent::addChild($this->_element); parent::beforeRender(); }