IXR_Request

IXR_Request.

Defined (1)

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

/wp-includes/class-IXR.php  
  1. class IXR_Request 
  2. var $method; 
  3. var $args; 
  4. var $xml; 
  5.  
  6. /** 
  7. * PHP5 constructor. 
  8. */ 
  9. function __construct($method, $args) 
  10. $this->method = $method; 
  11. $this->args = $args; 
  12. $this->xml = <<<EOD 
  13. <?xml version="1.0"?> 
  14. <methodCall> 
  15. <methodName>{$this->method}</methodName> 
  16. <params> 
  17.  
  18. EOD; 
  19. foreach ($this->args as $arg) { 
  20. $this->xml .= '<param><value>'; 
  21. $v = new IXR_Value($arg); 
  22. $this->xml .= $v->getXml(); 
  23. $this->xml .= "</value></param>\n"; 
  24. $this->xml .= '</params></methodCall>'; 
  25.  
  26. /** 
  27. * PHP4 constructor. 
  28. */ 
  29. public function IXR_Request( $method, $args ) { 
  30. self::__construct( $method, $args ); 
  31.  
  32. function getLength() 
  33. return strlen($this->xml); 
  34.  
  35. function getXml() 
  36. return $this->xml;