Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 3
0
 /**
  * @see Input
  * @param \ArtFaces\Utils\HtmlContruct $builder
  */
 protected function resolveOthersProperties($builder)
 {
     $builder->addAttribute("placeholder", $this->getPlaceHolder())->addAttribute("value", $this->getValue());
 }