Esempio n. 1
0
 /**
  * Process XML Response
  *
  * Process the XML response from Twitter.com
  *
  * @param string $response
  */
 function __process_xml($response)
 {
     $xml = new XML($response);
     $result = $xml->toArray();
     $xml->__killParent();
     $xml->__destruct();
     $xml = null;
     unset($xml);
     return $result;
 }
 function __to_array($response = '')
 {
     $xml = new XML($response);
     $array = $xml->toArray();
     $xml->__killParent();
     $xml->__destruct();
     $xml = null;
     unset($xml);
     return $array;
 }
Esempio n. 3
0
 function __process($response)
 {
     /* Note: this will fail to properly distinguish among link tags -- see
        __parse_atom above for a better alternative */
     $xml = new XML($response);
     $array = $xml->toArray();
     $xml->__killParent();
     $xml->__destruct();
     $xml = null;
     unset($xml);
     return $array;
 }