protected function _render()
 {
     parent::_render();
     $this->add_attr('type', $this->type);
     $this->add_attr('autocomplete', $this->autocomplete);
     $this->add_attr('list', $this->list);
     $this->add_attr('pattern', $this->pattern);
     $this->add_attr('placeholder', $this->placeholder);
     $this->add_attr('readonly', $this->readonly);
     $this->add_attr('size', $this->size);
 }
 protected function _render()
 {
     parent::_render();
     $this->add_attr('size', $this->size);
     $this->add_attr('multiple', $this->multiple);
     $this->output .= '>';
     if (!empty($this->options)) {
         if ($this->multiple) {
             if (!is_array($this->value)) {
                 if ($this->value) {
                     $this->value = array($this->value);
                 } else {
                     $this->value = array();
                 }
             }
         }
         foreach ($this->options as $value => $text) {
             if (is_scalar($text)) {
                 $this->output .= '<option value="' . $value . '"';
                 if ($this->multiple) {
                     if (in_array($value, $this->value)) {
                         $this->output .= ' selected';
                     }
                 } else {
                     if ($value == $this->value) {
                         $this->output .= ' selected';
                     }
                 }
                 $this->output .= '>' . $text . '</option>';
             } else {
                 if (is_object($text)) {
                     if ($this->multiple) {
                         if (in_array($text->value, $this->value)) {
                             $text->selected = true;
                         }
                     } else {
                         if ($text->value == $this->value) {
                             $text->selected = true;
                         }
                     }
                     $this->output .= $text->render(false);
                 }
             }
         }
     }
     $this->closeTag();
 }
 protected function _render()
 {
     parent::_render();
     $this->add_attr('cols', $this->cols);
     $this->add_attr('rows', $this->rows);
     $this->add_attr('minlength', $this->minlength);
     $this->add_attr('maxlength', $this->maxlength);
     $this->add_attr('dirname', $this->dirname);
     $this->add_attr('pattern', $this->pattern);
     $this->add_attr('placeholder', $this->placeholder);
     $this->add_attr('readonly', $this->readonly);
     $this->output .= '>';
     if (!empty($this->content)) {
         $this->output .= $this->content;
     }
     $this->closeTag();
 }
 protected function _render()
 {
     parent::_render();
     $this->add_attr('type', $this->type);
     $this->add_attr('formaction', $this->formaction);
     $this->add_attr('formmethod', $this->formmethod);
     $this->add_attr('formenctype', $this->formenctype);
     $this->add_attr('formnovalidate', $this->formnovalidate);
     $this->output .= '>';
     if ($this->content) {
         if (is_object($this->content)) {
             $this->output .= $this->content->render(false);
         } elseif (is_scalar($this->content)) {
             $this->output .= $this->content;
         }
     }
     $this->closeTag();
 }