| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * IXR_Error 5 * 6 * @package IXR 7 * @since 1.5.0 8 */ 9 class IXR_Error 10 { 11 /** 12 * @var int 13 */ 14 var $code; 15 16 /** 17 * @var string 18 */ 19 var $message; 20 21 /** 22 * PHP5 constructor. 23 * 24 * @param int $code Fault code. 25 * @param string $message Fault string. 26 */ 27 function __construct( $code, $message ) 28 { 29 $this->code = $code; 30 $this->message = htmlspecialchars($message); 31 } 32 33 /** 34 * PHP4 constructor. 35 * 36 * @param int $code Fault code. 37 * @param string $message Fault string. 38 */ 39 public function IXR_Error( $code, $message ) { 40 self::__construct( $code, $message ); 41 } 42 43 function getXml() 44 { 45 $xml = <<<EOD 46 <methodResponse> 47 <fault> 48 <value> 49 <struct> 50 <member> 51 <name>faultCode</name> 52 <value><int>{$this->code}</int></value> 53 </member> 54 <member> 55 <name>faultString</name> 56 <value><string>{$this->message}</string></value> 57 </member> 58 </struct> 59 </value> 60 </fault> 61 </methodResponse> 62 63 EOD; 64 return $xml; 65 } 66 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Oct 7 08:20:33 2026 | Cross-referenced by PHPXref |