XML class standards

updated the xml class for PSR-2
This commit is contained in:
Adam Magness 2017-11-20 12:56:31 -05:00
parent aac2258bc3
commit ddacbf2c13
9 changed files with 210 additions and 203 deletions

View file

@ -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;
}

View file

@ -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();
}

View file

@ -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(