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; }
public static function name($name) { return strtolower(\arc\xml::name($name)); }