xmlrpc_server xmlrpc_server(
[
$dispMap = null], [
$serviceNow = true], array
$dispmap, boolean
$servicenow
)
|
|
Parameters:
|
array |
$dispmap: |
the dispatch map withd efinition of exposed services |
|
boolean |
$servicenow: |
set to false to prevent the server from runnung upon construction |
|
|
$dispMap: |
|
|
|
$serviceNow: |
|
void add_to_map(
string
$methodname, string
$function, [array
$sig = null], [string
$doc = '']
)
|
|
Add a method to the dispatch map
Parameters:
|
string |
$methodname: |
the name with which the method will be made available |
|
string |
$function: |
the php function that will get invoked |
|
array |
$sig: |
the array of valid method signatures |
|
string |
$doc: |
method documentation |
API Tags:
A debugging routine: just echoes back the input packet as a string value
DEPRECATED!
string serializeDebug(
[string
$charset_encoding = '']
)
|
|
Return a string with the serialized representation of all debug info
Parameters:
|
string |
$charset_encoding: |
the target charset encoding for the serialization |
API Tags:
| Return: | an XML comment (or two) |
xmlrpcresp service(
[string
$data = null], [
$return_payload = false]
)
|
|
Execute the xmlrpc request, printing the response
Parameters:
|
string |
$data: |
the request body. If null, the http POST request will be examined |
|
|
$return_payload: |
|
API Tags:
| Return: | the response object (usually not used by caller...) |
| Access: | public |
void setDebug(
integer
$in
)
|
|
Set debug level of server.
Parameters:
|
integer |
$in: |
debug lvl: determines info added to xmlrpc responses (as xml comments) - = no debug info,
- = msgs set from user with debugmsg(),
- = add complete xmlrpc request (headers and body),
- = add also all processing warnings happened during method processing
(NB: this involves setting a custom error handler, and might interfere with the standard processing of the php function exposed as method. In particular, triggering an USER_ERROR level error will not halt script execution anymore, but just end up logged in the xmlrpc response) Note that info added at elevel 2 and 3 will be base64 encoded |
API Tags: