aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/XMLRPCErrorResponse.php
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-14 20:02:25 -0500
committercash <cash.costello@gmail.com>2011-12-14 20:02:25 -0500
commitdfaa80f0a44afe6faed0212e61c3edef48afc64d (patch)
tree43fb8d5d8208644a0608304e88049a29dc322840 /engine/classes/XMLRPCErrorResponse.php
parentf84e36f0690c87f30a292953562e80b280650540 (diff)
downloadelgg-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.php36
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>";
- }
-}