From 945802776e6820e3ba841e6690568e06e9f89954 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 20 Dec 2016 18:08:06 +0200 Subject: [PATCH] -Yaml controller for low requests ready --- helpers/XmlHelper.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) diff --git a/helpers/XmlHelper.php b/helpers/XmlHelper.php index 4f70e83..d697faa 100755 --- a/helpers/XmlHelper.php +++ b/helpers/XmlHelper.php @@ -15,4 +15,20 @@ $element .= '>' . $value . ''; return $element; } + + public static function createOpeningElement(string $name, array $attributes = []) + { + $element = '<' . $name; + foreach ($attributes as $key => $attribute) { + $element .= ' ' . $key . '="' . $attribute . '"'; + } + $element .= '>'; + return $element; + } + + public static function createClosingElement(string $name) + { + $element = ''; + return $element; + } } \ No newline at end of file -- libgit2 0.21.4