方法
来源
IXR_错误类 { var$代码; var$消息; /** *PHP5构造函数。 */ 函数__construct($code,$message) { $this->code=$code; $this->message=htmlspecialchars($message); } /** *PHP4构造函数。 */ 公共函数IXR_Error($code,$message){ self::__construct($code,$message); } 函数getXml() { $xml=<<<终止日期 <方法响应> <故障> <值> <结构> <成员> <name>错误代码</name> <value><int>{$this->code}</int></value> </成员> <成员> <name>faultString <value><string>{$this->message} </成员> </struct> </value> </故障> </methodResponse> 爆炸物处理; 返回$xml; } }