public function render()
 {
     $this->setName('');
     $this->setContent($this->getValue());
     $this->setValue('');
     return parent::render();
 }
Example #2
0
 public function render()
 {
     if ($this->getTag() == 'button') {
         $this->setContent($this->getLabel());
     } elseif ($this->getTag() == 'input') {
         $this->setValue($this->getLabel());
     }
     $this->setLabel(null);
     return parent::render();
 }
Example #3
0
 /**
  * 
  * @return string
  */
 public function render()
 {
     if ($this->elements) {
         foreach ($this->elements as $element) {
             $this->append($element->render(), $this->getContent() ? ' ' : '');
         }
     }
     $this->setName('');
     return parent::render();
 }
Example #4
0
 public function render()
 {
     if ($this->items) {
         foreach ($this->items as $key => $value) {
             if (is_array($value)) {
                 $this->append($this->renderOptGroup($key, $value));
             } else {
                 $this->append($this->renderItem($key, $value));
             }
         }
     }
     $this->removeAttrib('value');
     return parent::render();
 }
 public function render()
 {
     $this->setContent('');
     if ($this->items) {
         foreach ($this->items as $item) {
             if ($item->getValue() == $this->getValue()) {
                 $item->check();
             }
             $this->append($item->render());
         }
     }
     $this->removeAttrib('name');
     $this->removeAttrib('value');
     $this->addClass('checkbox-group');
     return parent::render();
 }