NXS_XMLRPC_Request

NXS_XMLRPC_Request.

Defined (1)

The class is defined in the following location(s).

/inc-cl/apis/xmlrpc-client.php  
  1. class NXS_XMLRPC_Request 
  2. var $method; 
  3. var $args; 
  4. var $xml; 
  5.  
  6. function NXS_XMLRPC_Request($method, $args) 
  7. $this->method = $method; 
  8. $this->args = $args; 
  9. $this->xml = <<<EOD 
  10. <?xml version="1.0"?> 
  11. <methodCall> 
  12. <methodName>{$this->method}</methodName> 
  13. <params> 
  14.  
  15. EOD; 
  16. foreach ($this->args as $arg) { 
  17. $this->xml .= '<param><value>'; 
  18. $v = new NXS_XMLRPC_Value($arg); 
  19. $this->xml .= $v->getXml(); 
  20. $this->xml .= "</value></param>\n"; 
  21. $this->xml .= '</params></methodCall>'; 
  22.  
  23. function getLength() 
  24. return strlen($this->xml); 
  25.  
  26. function getXml() 
  27. return $this->xml;