<?php
-/*
- IXR - The Inutio XML-RPC Library - (c) Incutio Ltd 2002-2005
- Version 1.7 (beta) - Simon Willison, 23rd May 2005
- Site: http://scripts.incutio.com/xmlrpc/
- Manual: http://scripts.incutio.com/xmlrpc/manual.php
- Made available under the BSD License: http://www.opensource.org/licenses/bsd-license.php
-*/
+/**
+ * IXR - The Inutio XML-RPC Library
+ *
+ * @package IXR
+ * @since 1.5
+ *
+ * @copyright Incutio Ltd 2002-2005
+ * @version 1.7 (beta) 23rd May 2005
+ * @author Simon Willison
+ * @link http://scripts.incutio.com/xmlrpc/ Site
+ * @link http://scripts.incutio.com/xmlrpc/manual.php Manual
+ * @license BSD License http://www.opensource.org/licenses/bsd-license.php
+ */
+/**
+ * IXR_Value
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Value {
var $data;
var $type;
}
// If it is a normal PHP object convert it in to a struct
if (is_object($this->data)) {
-
+
$this->data = get_object_vars($this->data);
return 'struct';
}
}
}
-
+/**
+ * IXR_Message
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Message {
var $message;
var $messageType; // methodCall / methodResponse / fault
}
}
$this->_currentTagContents = '';
- }
+ }
}
-
+/**
+ * IXR_Server
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Server {
var $data;
var $callbacks = array();
'specUrl' => 'http://www.xmlrpc.com/discuss/msgReader$1208',
'specVersion' => 1
),
- );
+ );
}
function getCapabilities($args) {
return $this->capabilities;
}
}
+/**
+ * IXR_Request
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Request {
var $method;
var $args;
}
}
-
+/**
+ * IXR_Client
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Client {
var $server;
var $port;
}
}
-
+/**
+ * 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
</struct>
</value>
</fault>
-</methodResponse>
+</methodResponse>
EOD;
return $xml;
}
}
-
+/**
+ * IXR_Date
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Date {
var $year;
var $month;
}
}
-
+/**
+ * IXR_Base64
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_Base64 {
var $data;
function IXR_Base64($data) {
}
}
-
+/**
+ * IXR_IntrospectionServer
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_IntrospectionServer extends IXR_Server {
var $signatures;
var $help;
'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'
);
}
}
}
-
+/**
+ * IXR_ClientMulticall
+ *
+ * @package IXR
+ * @since 1.5
+ */
class IXR_ClientMulticall extends IXR_Client {
var $calls = array();
function IXR_ClientMulticall($server, $path = false, $port = 80) {
}
}
-?>
\ No newline at end of file
+?>