示例#1
0
 /**
  * @see Element::defaultAttribtues
  */
 protected function defaultAttributes()
 {
     return array_merge(parent::defaultAttributes(), array('type' => '', 'name' => '', 'value' => ''));
 }
示例#2
0
 protected function defaultAttributes()
 {
     return parent::defaultAttributes() + array('action' => '', 'method' => 'POST', 'name' => '');
 }
示例#3
0
 /**
  * @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();
 }