Ejemplo n.º 1
0
 protected function element($tagName, $attributes, $content)
 {
     $tagName = \arc\xml::name($tagName);
     $el = '<' . $tagName;
     $el .= $this->getAttributes($attributes);
     if ($this->hasContent($content)) {
         $el .= '>' . self::indent($content, $this->writer->indent, $this->writer->newLine);
         $el .= '</' . $tagName . '>';
     } else {
         $el .= '/>';
     }
     return $el;
 }
Ejemplo n.º 2
0
 public static function name($name)
 {
     return strtolower(\arc\xml::name($name));
 }