diff options
author | cash <cash.costello@gmail.com> | 2011-12-14 20:02:25 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-14 20:02:25 -0500 |
commit | dfaa80f0a44afe6faed0212e61c3edef48afc64d (patch) | |
tree | 43fb8d5d8208644a0608304e88049a29dc322840 /engine/classes/XMLRPCErrorResponse.php | |
parent | f84e36f0690c87f30a292953562e80b280650540 (diff) | |
download | elgg-dfaa80f0a44afe6faed0212e61c3edef48afc64d.tar.gz elgg-dfaa80f0a44afe6faed0212e61c3edef48afc64d.tar.bz2 |
Fixes #3341 removed xml-rpc code from Elgg - see xml-rpc plugin if you need an xml-rpc endpoint
Diffstat (limited to 'engine/classes/XMLRPCErrorResponse.php')
-rw-r--r-- | engine/classes/XMLRPCErrorResponse.php | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/engine/classes/XMLRPCErrorResponse.php b/engine/classes/XMLRPCErrorResponse.php deleted file mode 100644 index 425c075cc..000000000 --- a/engine/classes/XMLRPCErrorResponse.php +++ /dev/null @@ -1,36 +0,0 @@ -<?php - -/** - * XMLRPC Error Response - * - * @package Elgg.Core - * @subpackage XMLRPC - */ -class XMLRPCErrorResponse extends XMLRPCResponse { - /** - * Set the error response and error code. - * - * @param string $message The message - * @param int $code Error code (default = system error as defined by - * http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php) - */ - function __construct($message, $code = -32400) { - $this->addParameter( - new XMLRPCStructParameter( - array ( - 'faultCode' => new XMLRPCIntParameter($code), - 'faultString' => new XMLRPCStringParameter($message) - ) - ) - ); - } - - /** - * Output to XML. - * - * @return string - */ - public function __toString() { - return "<methodResponse><fault><value>{$this->parameters[0]}</value></fault></methodResponse>"; - } -} |