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