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