protected function _render()
 {
     parent::_render();
     $this->output .= '>';
     if (!empty($this->content)) {
         foreach ($this->content as $key => $object) {
             $this->output .= $object->render(false);
         }
     }
 }
 protected function _render()
 {
     parent::_render();
     $this->add_attr('value', $this->value);
     $this->add_attr('label', $this->label);
     $this->add_attr('disabled', $this->disabled);
     $this->add_attr('selected', $this->selected);
     $this->output .= '>';
     if (!empty($this->content)) {
         $this->output .= $this->content;
     }
     $this->closeTag();
 }
 protected function _render()
 {
     parent::_render();
     if (empty($this->name)) {
         $this->name = $this->id;
     }
     $this->add_attr('name', $this->name);
     $this->add_attr('value', $this->value);
     $this->add_attr('required', $this->required);
     $this->add_attr('autofocus', $this->autofocus);
     $this->add_attr('disabled', $this->disabled);
     $this->add_attr('form', $this->form);
 }
 protected function _render()
 {
     parent::_render();
     $this->add_attr('name', $this->name);
     $this->add_attr('form', $this->form);
     $this->add_attr('disabled', $this->disabled);
     $this->output .= '>';
     if (!empty($this->content)) {
         foreach ($this->content as $key => $object) {
             $this->output .= $object->render(false);
         }
     }
     $this->closeTag();
 }
Esempio n. 5
0
 protected function _render()
 {
     parent::_render();
     $this->output .= '>';
     if ($this->caption) {
         $this->output .= $this->caption->render(falase);
     }
     if ($this->head) {
         $this->output .= $this->head->render(false);
     }
     if ($this->foot) {
         $this->output .= $this->foot->render(false);
     }
     if ($this->body) {
         $this->output .= $this->body->render(false);
     }
     $this->output .= '</table>';
     return $ret;
 }
 protected function _render()
 {
     if ($this->header) {
         $this->tag_name = 'th';
     } else {
         $this->tag_name = 'td';
     }
     parent::_render();
     $this->add_attr('scope', $this->scope);
     if ($this->header) {
         $this->add_attr('abbr', $this->abbr);
     }
     if ($this->colspan > 1) {
         $this->add_attr('colspan', $this->colspan);
     }
     if ($this->rowspan > -1) {
         $this->add_attr('rowspan', $this->rowspan);
     }
     $this->output .= '>';
     if (!empty($this->content)) {
         if (is_array($this->content)) {
             foreach ($this->content as $key => $object) {
                 if (is_scalar($object)) {
                     $this->output .= $object;
                 } else {
                     if (is_object($object)) {
                         $this->output .= $object->render(false);
                     }
                 }
             }
         } else {
             if (is_scalar($this->content)) {
                 $this->output .= $this->content;
             } else {
                 if (is_object($this->content)) {
                     $this->output .= $this->content->render(false);
                 }
             }
         }
     }
     $this->closeTag();
 }
 protected function _render()
 {
     parent::_render();
     if (empty($this->for) && $this->contentObject) {
         $this->for = $this->contentObject->id;
     }
     $this->add_attr('form', $this->form);
     $this->output .= '>';
     if ($this->contentObject) {
         $this->output .= $this->contentObject->render(false);
         $this->output .= ' ';
     }
     if (!empty($this->content)) {
         if (is_scalar($this->content)) {
             $this->output .= $this->content;
         }
     }
     $this->closeTag();
     if ($this->lineBreak) {
         $this->output .= '<br>';
     }
     return $ret;
 }
 protected function _render()
 {
     parent::_render();
     $this->output .= $this->content->render(false);
     parent::closeTag();
 }