X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/ff81ee6e8304a1982a3ec4f5b134764a29d502cf..refs/tags/wordpress-2.6.2:/wp-includes/class-IXR.php diff --git a/wp-includes/class-IXR.php b/wp-includes/class-IXR.php index 7851b68a..f27be3f9 100644 --- a/wp-includes/class-IXR.php +++ b/wp-includes/class-IXR.php @@ -1,12 +1,24 @@ data)) { - + $this->data = get_object_vars($this->data); return 'struct'; } @@ -114,7 +126,12 @@ class IXR_Value { } } - +/** + * IXR_Message + * + * @package IXR + * @since 1.5 + */ class IXR_Message { var $message; var $messageType; // methodCall / methodResponse / fault @@ -254,10 +271,15 @@ class IXR_Message { } } $this->_currentTagContents = ''; - } + } } - +/** + * IXR_Server + * + * @package IXR + * @since 1.5 + */ class IXR_Server { var $data; var $callbacks = array(); @@ -379,7 +401,7 @@ EOD; 'specUrl' => 'http://www.xmlrpc.com/discuss/msgReader$1208', 'specVersion' => 1 ), - ); + ); } function getCapabilities($args) { return $this->capabilities; @@ -418,6 +440,12 @@ EOD; } } +/** + * IXR_Request + * + * @package IXR + * @since 1.5 + */ class IXR_Request { var $method; var $args; @@ -448,7 +476,12 @@ EOD; } } - +/** + * IXR_Client + * + * @package IXR + * @since 1.5 + */ class IXR_Client { var $server; var $port; @@ -559,13 +592,18 @@ class IXR_Client { } } - +/** + * IXR_Error + * + * @package IXR + * @since 1.5 + */ class IXR_Error { var $code; var $message; function IXR_Error($code, $message) { $this->code = $code; - $this->message = $message; + $this->message = htmlspecialchars($message); } function getXml() { $xml = << - + EOD; return $xml; } } - +/** + * IXR_Date + * + * @package IXR + * @since 1.5 + */ class IXR_Date { var $year; var $month; @@ -635,7 +678,12 @@ class IXR_Date { } } - +/** + * IXR_Base64 + * + * @package IXR + * @since 1.5 + */ class IXR_Base64 { var $data; function IXR_Base64($data) { @@ -646,7 +694,12 @@ class IXR_Base64 { } } - +/** + * IXR_IntrospectionServer + * + * @package IXR + * @since 1.5 + */ class IXR_IntrospectionServer extends IXR_Server { var $signatures; var $help; @@ -658,27 +711,27 @@ class IXR_IntrospectionServer extends IXR_Server { 'specVersion' => 1 ); $this->addCallback( - 'system.methodSignature', - 'this:methodSignature', - array('array', 'string'), + 'system.methodSignature', + 'this:methodSignature', + array('array', 'string'), 'Returns an array describing the return type and required parameters of a method' ); $this->addCallback( - 'system.getCapabilities', - 'this:getCapabilities', - array('struct'), + 'system.getCapabilities', + 'this:getCapabilities', + array('struct'), 'Returns a struct describing the XML-RPC specifications supported by this server' ); $this->addCallback( - 'system.listMethods', - 'this:listMethods', - array('array'), + 'system.listMethods', + 'this:listMethods', + array('array'), 'Returns an array of available methods on this server' ); $this->addCallback( - 'system.methodHelp', - 'this:methodHelp', - array('string', 'string'), + 'system.methodHelp', + 'this:methodHelp', + array('string', 'string'), 'Returns a documentation string for the specified method' ); } @@ -790,7 +843,12 @@ class IXR_IntrospectionServer extends IXR_Server { } } - +/** + * IXR_ClientMulticall + * + * @package IXR + * @since 1.5 + */ class IXR_ClientMulticall extends IXR_Client { var $calls = array(); function IXR_ClientMulticall($server, $path = false, $port = 80) { @@ -812,4 +870,4 @@ class IXR_ClientMulticall extends IXR_Client { } } -?> \ No newline at end of file +?>