Some more small documentation stuff

This commit is contained in:
Michael Vogel 2016-03-27 23:25:32 +02:00
parent 16ef9f4940
commit faa9b77a90
2 changed files with 4 additions and 4 deletions

View File

@ -118,7 +118,7 @@ class diaspora {
* *
* @return string the repaired signature * @return string the repaired signature
*/ */
function repair_signature($signature, $handle = "", $level = 1) { private function repair_signature($signature, $handle = "", $level = 1) {
if ($signature == "") if ($signature == "")
return ($signature); return ($signature);
@ -146,7 +146,7 @@ class diaspora {
* 'author' -> author diaspora handle * 'author' -> author diaspora handle
* 'key' -> author public key (converted to pkcs#8) * 'key' -> author public key (converted to pkcs#8)
*/ */
function decode($importer, $xml) { public static function decode($importer, $xml) {
$public = false; $public = false;
$basedom = parse_xml_string($xml); $basedom = parse_xml_string($xml);

View File

@ -15,7 +15,7 @@ class xml {
* *
* @return string The created 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) { if ($root) {
foreach($array as $key => $value) { foreach($array as $key => $value) {
@ -78,7 +78,7 @@ class xml {
* @param object $target The XML target * @param object $target The XML target
* @param string $elementname Name of the XML element of the 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) if (count($source->children()) == 0)
$target->addChild($elementname, xmlify($source)); $target->addChild($elementname, xmlify($source));
else { else {