buildArrayFromXml() public static method

public static buildArrayFromXml ( string $xml ) : array
$xml string
return array
Exemplo n.º 1
0
 public function put($path, $params = null)
 {
     $response = $this->_doRequest('PUT', $path, $this->_buildXml($params));
     $responseCode = $response['status'];
     if ($responseCode === 200 || $responseCode === 201 || $responseCode === 422 || $responseCode == 400) {
         return Xml::buildArrayFromXml($response['body']);
     } else {
         Util::throwStatusCodeException($responseCode);
     }
 }
Exemplo n.º 2
0
 public function xmlAndBack($array)
 {
     $xml = Braintree\Xml::buildXmlFromArray($array);
     return Braintree\Xml::buildArrayFromXml($xml);
 }