Class: xmlrpcmsg
Source Location: /blogs/inc/_ext/xmlrpc/_xmlrpc.inc.php
Class xmlrpcmsg
Class Overview
Property Summary
Method Summary
| xmlrpcmsg | xmlrpcmsg() | |
| boolean | addParam() | Add a parameter to the list of parameters to be used upon method invocation |
| integer | getNumParams() | Returns the number of parameters in the messge. |
| string | method() | Gets/sets the xmlrpc method to be invoked |
| xmlrpcresp | &parseResponse() | Parse the xmlrpc response contained in the string $data and return an xmlrpcresp object. |
| xmlrpcresp | &parseResponseFile() | Given an open file handle, read all data available and parse it as axmlrpc response. |
| string | serialize() | Returns xml representation of the message. XML prologue included |
[ Top ]
Properties
Methods
Constructor xmlrpcmsg [line 2006]
|
| string | $meth: | the name of the method to invoke |
| array | $pars: | array of parameters to be paased to the method (xmlrpcval objects) |
[ Top ]
addParam [line 2103]
|
Add a parameter to the list of parameters to be used upon method invocation
Parameters:| xmlrpcval | $par: |
API Tags:
| Return: | false on failure |
| Access: | public |
[ Top ]
getNumParams [line 2130]
|
Returns the number of parameters in the messge.
API Tags:
| Return: | the number of parameters currently set |
| Access: | public |
[ Top ]
getParam [line 2123]
|
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 |
[ Top ]
method [line 2077]
|
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 |
[ Top ]
parseResponse [line 2389]
|
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:
| Access: | public |
[ Top ]
parseResponseFile [line 2139]
|
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:| $fp: |
API Tags:
| Access: | public |
Information Tags:
| Todo: | add 2nd & 3rd param to be passed to ParseResponse() ??? |
[ Top ]
