Example #1
0
 /**
  * Método getOutput
  * Retorna o HTML na forma de uma string ao invés de escrever na saida de dados
  * pro navegador
  */
 public function getOutput()
 {
     $this->head->appendChild($this->title);
     parent::appendChild($this->head);
     parent::appendChild($this->body);
     header('Content-Type: text/html; charset=utf-8');
     return parent::getOutput();
 }
Example #2
0
 public function getOutput()
 {
     $return = $this->element->getOutput();
     if (!is_null($this->label)) {
         if ($this instanceof IHtmlInputPostLabeled) {
             $this->label->prependChild($return);
             $return = $this->label->getOutput();
         } else {
             $return = $this->label->getOutput() . $this->element->getOutput();
         }
     }
     return $return;
 }
Example #3
0
 public function getOutput()
 {
     $this->prependChild($this->text);
     return parent::getOutput();
 }