Public Member Functions | |
xmlrpcmsg ($meth, $pars=0) | |
xml_header ($charset_encoding='') | |
xml_footer () | |
kindOf () | |
createPayload ($charset_encoding='') | |
method ($meth='') | |
serialize ($charset_encoding='') | |
addParam ($par) | |
getParam ($i) | |
getNumParams () | |
& | parseResponseFile ($fp) |
& | parseResponseHeaders (&$data, $headers_processed=false) |
& | parseResponse ($data='', $headers_processed=false, $return_type='xmlrpcvals') |
Public Attributes | |
$payload | |
$methodname | |
$params = array() | |
$debug = 0 | |
$content_type = 'text/xml' |
Definition at line 2030 of file xmlrpc.inc.php.
xmlrpcmsg::xmlrpcmsg | ( | $ | meth, | |
$ | pars = 0 | |||
) |
string | $meth the name of the method to invoke | |
array | $pars array of parameters to be paased to the method (xmlrpcval objects) |
Definition at line 2042 of file xmlrpc.inc.php.
References addParam().
xmlrpcmsg::xml_header | ( | $ | charset_encoding = '' |
) |
xmlrpcmsg::xml_footer | ( | ) |
xmlrpcmsg::kindOf | ( | ) |
private
Definition at line 2080 of file xmlrpc.inc.php.
xmlrpcmsg::createPayload | ( | $ | charset_encoding = '' |
) |
private
Definition at line 2088 of file xmlrpc.inc.php.
References xml_footer(), and xml_header().
Referenced by serialize().
xmlrpcmsg::method | ( | $ | meth = '' |
) |
Gets/sets the xmlrpc method to be invoked
string | $meth the method to be set (leave empty not to set it) |
Definition at line 2113 of file xmlrpc.inc.php.
xmlrpcmsg::serialize | ( | $ | charset_encoding = '' |
) |
Returns xml representation of the message. XML prologue included
Definition at line 2127 of file xmlrpc.inc.php.
References createPayload().
xmlrpcmsg::addParam | ( | $ | par | ) |
Add a parameter to the list of parameters to be used upon method invocation
xmlrpcval | $par |
Definition at line 2139 of file xmlrpc.inc.php.
Referenced by xmlrpcmsg().
xmlrpcmsg::getParam | ( | $ | i | ) |
Returns the nth parameter in the message. The index zero-based.
integer | $i the index of the parameter to fetch (zero based) |
Definition at line 2159 of file xmlrpc.inc.php.
xmlrpcmsg::getNumParams | ( | ) |
Returns the number of parameters in the messge.
Definition at line 2166 of file xmlrpc.inc.php.
& xmlrpcmsg::parseResponseFile | ( | $ | fp | ) |
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. public
Definition at line 2175 of file xmlrpc.inc.php.
References parseResponse().
& xmlrpcmsg::parseResponseHeaders | ( | &$ | data, | |
$ | headers_processed = false | |||
) |
Parses HTTP headers and separates them from data. private
Definition at line 2191 of file xmlrpc.inc.php.
References $GLOBALS, and debug().
Referenced by parseResponse().
& xmlrpcmsg::parseResponse | ( | $ | data = '' , |
|
$ | headers_processed = false , |
|||
$ | return_type = 'xmlrpcvals' | |||
) |
Parse the xmlrpc response contained in the string $data and return an xmlrpcresp object.
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' |
Definition at line 2425 of file xmlrpc.inc.php.
References $GLOBALS, debug(), and parseResponseHeaders().
Referenced by parseResponseFile().
xmlrpcmsg::$payload |
Definition at line 2032 of file xmlrpc.inc.php.
xmlrpcmsg::$methodname |
Definition at line 2033 of file xmlrpc.inc.php.
xmlrpcmsg::$params = array() |
Definition at line 2034 of file xmlrpc.inc.php.
xmlrpcmsg::$debug = 0 |
Definition at line 2035 of file xmlrpc.inc.php.
xmlrpcmsg::$content_type = 'text/xml' |
Definition at line 2036 of file xmlrpc.inc.php.