Example #1
0
 public function render()
 {
     $builder = new HtmlContruct();
     $builder->startElement("input")->addAttribute('id', $this->getId())->addAttribute('type', $this->getType())->addAttribute('style', $this->getStyle())->addAttribute('class', $this->getCssClass());
     $this->resolveOthersProperties($builder);
     $this->renderBody($builder);
     $builder->endElement("input");
     return $builder->render();
 }
Example #2
0
 /**
  * 
  * @return type
  */
 public function render()
 {
     $construct = new HtmlContruct();
     if ($this->markup) {
         $construct->startElement("head");
     }
     //render titulo
     if (!empty($this->title)) {
         $construct->startElement("title")->write($this->title)->endElement("title");
     }
     $this->renderMeta($construct)->renderStyle($construct)->renderScript($construct);
     if (!empty($this->no_Script)) {
         $construct->startElement("noscript")->write($this->no_Script)->endElement("noscript");
     }
     if ($this->markup) {
         $construct->endElement("head");
     }
     return $construct->render();
 }