예제 #1
0
파일: twitter.php 프로젝트: joux/fraim
 /**
  * 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;
 }
예제 #3
0
파일: twitter.php 프로젝트: areisv/cakewell
 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;
 }