Some more small documentation stuff

This commit is contained in:
Michael Vogel 2016-03-27 23:25:32 +02:00 committed by Roland Haeder
parent 805f1287d0
commit b198e73ef0
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ class xml {
*
* @return string The created XML
*/
function from_array($array, &$xml, $remove_header = false, $namespaces = array(), $root = true) {
public static function from_array($array, &$xml, $remove_header = false, $namespaces = array(), $root = true) {
if ($root) {
foreach($array as $key => $value) {
@ -78,7 +78,7 @@ class xml {
* @param object $target The XML target
* @param string $elementname Name of the XML element of the target
*/
function copy(&$source, &$target, $elementname) {
public static function copy(&$source, &$target, $elementname) {
if (count($source->children()) == 0)
$target->addChild($elementname, xmlify($source));
else {