IXR_Error

IXR_Error.

Defined (1)

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

/bp-forums/bbpress/bb-includes/backpress/class.ixr.php  
  1. class IXR_Error 
  2. var $code; 
  3. var $message; 
  4.  
  5. function __construct($code, $message) 
  6. $this->code = $code; 
  7. $this->message = htmlspecialchars($message); 
  8.  
  9. function IXR_Error($code, $message) 
  10. $this->__construct($code, $message); 
  11.  
  12. function getXml() 
  13. $xml = <<<EOD 
  14. <methodResponse> 
  15. <fault> 
  16. <value> 
  17. <struct> 
  18. <member> 
  19. <name>faultCode</name> 
  20. <value><int>{$this->code}</int></value> 
  21. </member> 
  22. <member> 
  23. <name>faultString</name> 
  24. <value><string>{$this->message}</string></value> 
  25. </member> 
  26. </struct> 
  27. </value> 
  28. </fault> 
  29. </methodResponse> 
  30.  
  31. EOD; 
  32. return $xml;