Dotclear 2.24
|
Basic XML-RPC Server. More...
Public Member Functions | |
__construct ($callbacks=false, $data=false, string $encoding='UTF-8') | |
serve ($data=false) | |
Data Fields | |
$strict_check = false | |
Protected Member Functions | |
head (int $code, string $msg) | |
call (string $methodname, array $args) | |
error (Exception $e) | |
output (string $xml) | |
hasMethod (string $method) | |
setCapabilities () | |
setCallbacks () | |
getCapabilities () | |
listMethods () | |
multiCall (array $methodcalls) | |
Protected Attributes | |
$callbacks = [] | |
$data | |
$encoding | |
$message | |
$capabilities | |
Basic XML-RPC Server.
XML-RPC Server
This class library is fully based on Simon Willison's IXR library (http://scripts.incutio.com/xmlrpc/).
This is the most basic XML-RPC server you can create. Built-in methods are:
__construct | ( | $callbacks = false , |
|
$data = false , |
|||
string | $encoding = 'UTF-8' |
||
) |
Constructor
mixed | $callbacks | Server callbacks |
mixed | $data | Server data |
string | $encoding | Server encoding |
References $callbacks, $data, $encoding, serve(), setCallbacks(), and setCapabilities().
serve | ( | $data = false | ) |
Start XML-RPC Server
This method starts the XML-RPC Server. It could take a data argument which should be a valid XML-RPC raw stream. If data is not specified, it take values from raw POST data.
mixed | $data | XML-RPC raw stream |
Reimplemented in dcXmlRpc.
References $data, call(), error(), exit, head(), and output().
Referenced by __construct().
|
protected |
|
protected |
Method call
This method calls the given XML-RPC method with arguments.
string | $methodname | Method name |
array | $args | Method arguments |
References hasMethod().
Referenced by multiCall(), and serve().
|
protected |
|
protected |
|
protected |
XML-RPC Server has method?
Returns true if the server has the given method $method
string | $method | Method name |
Referenced by xmlrpcIntrospectionServer\call(), call(), and xmlrpcIntrospectionServer\methodSignature().
|
protected |
Server Capabilities
This method initiates the server capabilities:
Referenced by __construct(), and xmlrpcIntrospectionServer\__construct().
|
protected |
Server Methods
This method creates the three main server's methods:
Referenced by __construct(), and xmlrpcIntrospectionServer\__construct().
|
protected |
|
protected |
Server methods
Returns all server methods
|
protected |
Multicall
This method handles a multi-methods call
array | $methodcalls | Array of methods |
References call().
|
protected |
Referenced by __construct().
|
protected |
Referenced by __construct(), and serve().
|
protected |
Referenced by __construct(), and xmlrpcIntrospectionServer\__construct().
|
protected |
|
protected |
Referenced by getCapabilities().
$strict_check = false |