/** * renderiza los datos Meta de la Instancia Actual * @param HtmlContruct $construct * @return \ArtFaces\Components\Head\Head */ private function renderMeta($construct) { if (!empty($this->meta) && $construct != null) { $properties = array('charset', 'content', 'http-equiv', 'name', 'scheme'); foreach ($this->meta as $meta) { if (\gettype($meta) === 'array') { $construct->startElement("meta"); foreach ($meta as $proper => $value) { if (in_array($proper, $properties)) { $construct->addAttribute($proper, $value); } } } } } return $this; }
/** * @see Input * @param \ArtFaces\Utils\HtmlContruct $builder */ protected function resolveOthersProperties($builder) { $builder->addAttribute("placeholder", $this->getPlaceHolder())->addAttribute("value", $this->getValue()); }