mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:10:11 +00:00
XML class standards
updated the xml class for PSR-2
This commit is contained in:
parent
aac2258bc3
commit
ddacbf2c13
9 changed files with 210 additions and 203 deletions
|
@ -902,7 +902,7 @@ function api_create_xml($data, $root_element)
|
|||
|
||||
$data3 = array($root_element => $data2);
|
||||
|
||||
$ret = XML::from_array($data3, $xml, false, $namespaces);
|
||||
$ret = XML::fromArray($data3, $xml, false, $namespaces);
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -414,7 +414,7 @@ function xml_status($st, $message = '')
|
|||
|
||||
$xmldata = array("result" => $result);
|
||||
|
||||
echo XML::from_array($xmldata, $xml);
|
||||
echo XML::fromArray($xmldata, $xml);
|
||||
|
||||
killme();
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ function slapper($owner, $url, $slap)
|
|||
|
||||
$namespaces = array("me" => "http://salmon-protocol.org/ns/magic-env");
|
||||
|
||||
$salmon = XML::from_array($xmldata, $xml, false, $namespaces);
|
||||
$salmon = XML::fromArray($xmldata, $xml, false, $namespaces);
|
||||
|
||||
// slap them
|
||||
post_url($url, $salmon, array(
|
||||
|
@ -138,7 +138,7 @@ function slapper($owner, $url, $slap)
|
|||
|
||||
$namespaces = array("me" => "http://salmon-protocol.org/ns/magic-env");
|
||||
|
||||
$salmon = XML::from_array($xmldata, $xml, false, $namespaces);
|
||||
$salmon = XML::fromArray($xmldata, $xml, false, $namespaces);
|
||||
|
||||
// slap them
|
||||
post_url($url, $salmon, array(
|
||||
|
@ -161,7 +161,7 @@ function slapper($owner, $url, $slap)
|
|||
|
||||
$namespaces = array("me" => "http://salmon-protocol.org/ns/magic-env");
|
||||
|
||||
$salmon = XML::from_array($xmldata, $xml, false, $namespaces);
|
||||
$salmon = XML::fromArray($xmldata, $xml, false, $namespaces);
|
||||
|
||||
// slap them
|
||||
post_url($url, $salmon, array(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue