xmlrpcmsg xmlrpcmsg(
string
$meth, [array
$pars = 0]
)
|
|
Parameters:
|
string |
$meth: |
the name of the method to invoke |
|
array |
$pars: |
array of parameters to be paased to the method (xmlrpcval objects) |
Add a parameter to the list of parameters to be used upon method invocation
Parameters:
API Tags:
| Return: | false on failure |
| Access: | public |
Returns the number of parameters in the messge.
API Tags:
| Return: | the number of parameters currently set |
| Access: | public |
Returns the nth parameter in the message. The index zero-based.
Parameters:
|
integer |
$i: |
the index of the parameter to fetch (zero based) |
API Tags:
| Return: | the i-th parameter |
| Access: | public |
string method(
[string
$meth = '']
)
|
|
Gets/sets the xmlrpc method to be invoked
Parameters:
|
string |
$meth: |
the method to be set (leave empty not to set it) |
API Tags:
| Return: | the method that will be invoked |
| Access: | public |
xmlrpcresp &parseResponse(
[string
$data = ''], [bool
$headers_processed = false], [string
$return_type = 'xmlrpcvals']
)
|
|
Parse the xmlrpc response contained in the string $data and return an xmlrpcresp object.
Parameters:
|
string |
$data: |
the xmlrpc response, eventually including http headers |
|
bool |
$headers_processed: |
when true prevents parsing HTTP headers for interpretation of content-encoding and consequent decoding |
|
string |
$return_type: |
decides return type, i.e. content of response->value(). Either 'xmlrpcvals', 'xml' or 'phpvals' |
API Tags:
Given an open file handle, read all data available and parse it as axmlrpc response.
NB: the file handle is not closed by this function.
Parameters:
API Tags:
Information Tags:
| Todo: | add 2nd & 3rd param to be passed to ParseResponse() ??? |
string serialize(
[
$charset_encoding = '']
)
|
|
Returns xml representation of the message. XML prologue included
Parameters:
API Tags:
| Return: | the xml representation of the message, xml prologue included |
| Access: | public |