From faa9b77a90be70f76990451aff9c25fa2e05dad4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 27 Mar 2016 23:25:32 +0200 Subject: [PATCH] Some more small documentation stuff --- include/diaspora.php | 4 ++-- include/xml.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index 277eb6f8e..d2a90fc98 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -118,7 +118,7 @@ class diaspora { * * @return string the repaired signature */ - function repair_signature($signature, $handle = "", $level = 1) { + private function repair_signature($signature, $handle = "", $level = 1) { if ($signature == "") return ($signature); @@ -146,7 +146,7 @@ class diaspora { * 'author' -> author diaspora handle * 'key' -> author public key (converted to pkcs#8) */ - function decode($importer, $xml) { + public static function decode($importer, $xml) { $public = false; $basedom = parse_xml_string($xml); diff --git a/include/xml.php b/include/xml.php index 47a2f6f7d..2bcc73b8f 100644 --- a/include/xml.php +++ b/include/xml.php @@ -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 {