API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5

Référence du fichier xmlrpc.php




Documentation des fonctions

iso8601_decode ( idate,
utc = 0 

Given an ISO8601 date string, return a timet in the localtime, or UTC

int$utceither 0 or 1
int (datetime)

Référencé par php_xmlrpc_decode().

Voici le graphe d'appel pour cette fonction :

iso8601_encode ( timet,
utc = 0 

Given a timestamp, return the corresponding ISO8601 encoded string.

Really, timezones ought to be supported but the XML-RPC spec says:

"Don't assume a timezone. It should be specified by the server in its documentation what assumptions it makes about timezones."

These routines always assume localtime unless $utc is set to 1, in which case UTC is assumed and an adjustment for locale is made when encoding

int$utc(0 or 1)
php_xmlrpc_decode ( xmlrpc_val,
options = array() 

Takes an xmlrpc value in PHP xmlrpcval object format and translates it into native PHP types.

Works with xmlrpc message objects as input, too.

Given proper options parameter, can rebuild generic php object instances (provided those have been encoded to xmlrpc format using a corresponding option in php_xmlrpc_encode()) PLEASE NOTE that rebuilding php objects involves calling their constructor function. This means that the remote communication end can decide which php code will get executed on your server, leaving the door possibly open to 'php-injection' style of attacks (provided you have some classes defined on your server that might wreak havoc if instances are built outside an appropriate context). Make sure you trust the remote server/client before eanbling this!

Dan Libby (dan@libby.com)
array$optionsif 'decode_php_objs' is set in the options array, xmlrpc structs can be decoded into php objects

Références $i, et iso8601_decode().

Voici le graphe d'appel pour cette fonction :

xmlrpc_cd ( parser,

xml parser handler function for character data

Références $data, et $GLOBALS.

xmlrpc_dh ( parser,

xml parser handler function for 'other stuff', ie. not char data or element start/end tag. In fact it only gets called on unknown entities...

Références $data, et $GLOBALS.

xmlrpc_ee ( parser,
rebuild_xmlrpcvals = true 

xml parser handler function for close element tags

since the case() in which we are already did that

Références $GLOBALS, $name, et elseif.

Référencé par xmlrpc_ee_fast().

Voici le graphe d'appel pour cette fonction :

xmlrpc_ee_fast ( parser,

Used in decoding xmlrpc requests/responses without rebuilding xmlrpc values.

Références $name, et xmlrpc_ee().

Voici le graphe d'appel pour cette fonction :

xmlrpc_encode_entitites ( data,
src_encoding = '',
dest_encoding = '' 

Convert a string to the correct XML representation in a target charset To help correct communication of non-ascii chars inside strings, regardless of the charset used when sending requests, parsing them, sending responses and parsing responses, an option is to convert all non-ascii chars present in the message into their equivalent 'charset entity'. Charset entities enumerated this way are independent of the charset encoding used to transmit them, and all XML parsers are bound to understand them. Note that in the std case we are not sending a charset encoding mime type along with http headers, so we are bound by RFC 3023 to emit strict us-ascii.

Références $data, $GLOBALS, et $ii.

Référencé par xmlrpcval::serializedata(), et xmlrpc_server::serializeDebug().

Voici le graphe d'appel pour cette fonction :

xmlrpc_se ( parser,
accept_single_vals = false 

xml parser handler function for opening element tags

INVALID ELEMENT: RAISE ISF so that it is later recognized!!!

Références $GLOBALS, et $name.

Référencé par xmlrpc_se_any().

Voici le graphe d'appel pour cette fonction :

xmlrpc_se_any ( parser,

Used in decoding xml chunks that might represent single xmlrpc values.

Références $name, et xmlrpc_se().

Voici le graphe d'appel pour cette fonction :

Documentation des variables

if ($phpversion[0]== '4'&&$phpversion[2]< 2) $GLOBALS['xmlrpcI4'] = 'i4'
$GLOBALS['_xh'] = null
$GLOBALS['xmlrpc_null_extension'] = false
$GLOBALS['xmlrpc_backslash'] = chr(92).chr(92)
$GLOBALS['xmlrpcerrxml'] = 100
$GLOBALS['xmlrpcerruser'] = 800
$GLOBALS['xmlrpcVersion'] = '2.2'
$GLOBALS['xmlrpcName'] = 'XML-RPC for PHP'
$GLOBALS['xmlrpc_internalencoding'] = 'ISO-8859-1'
$GLOBALS['xmlrpc_defencoding'] = 'UTF-8'
$GLOBALS['xmlrpcstr']['server_decompress_fail'] = 'Received from client invalid compressed HTTP request'
$GLOBALS['xmlrpcBoolean'] = 'boolean'
$GLOBALS['xmlrpcstr']['server_cannot_decompress'] = 'Received from client compressed HTTP request and cannot decompress'
$GLOBALS['xmlrpcerr']['server_cannot_decompress'] = 106
$GLOBALS['xmlrpcstr']['dechunk_fail'] = 'Received from server invalid chunked HTTP'
$GLOBALS['xmlrpcerr']['dechunk_fail'] = 105
$GLOBALS['xmlrpcstr']['decompress_fail'] = 'Received from server invalid compressed HTTP'
$GLOBALS['xmlrpcerr']['decompress_fail'] = 104
$GLOBALS['xmlrpcstr']['cannot_decompress'] = 'Received from server compressed HTTP and cannot decompress'
$GLOBALS['xmlrpcerr']['cannot_decompress'] = 103
$GLOBALS['xmlrpcstr']['multicall_notarray'] = 'params is not an array'
$GLOBALS['xmlrpcerr']['multicall_notarray'] = 14
$GLOBALS['xmlrpcstr']['multicall_noparams'] = 'missing params'
$GLOBALS['xmlrpcerr']['multicall_noparams'] = 13
$GLOBALS['xmlrpcstr']['multicall_recursion'] = 'recursive system.multicall forbidden'
$GLOBALS['xmlrpcerr']['multicall_recursion'] = 12
$GLOBALS['xmlrpcstr']['multicall_notstring'] = 'methodName is not a string'
$GLOBALS['xmlrpcerr']['multicall_notstring'] = 11
$GLOBALS['xmlrpcstr']['multicall_nomethod'] = 'missing methodName'
$GLOBALS['xmlrpcerr']['multicall_nomethod'] = 10
$GLOBALS['xmlrpcstr']['multicall_notstruct'] = 'system.multicall expected struct'
$GLOBALS['xmlrpcerr']['multicall_notstruct'] = 9
$GLOBALS['xmlrpcstr']['multicall_error'] = 'Received from server invalid multicall response'
$GLOBALS['xmlrpcerr']['multicall_error'] = 18
$GLOBALS['xmlrpcstr']['server_error'] = 'Internal server error'
$GLOBALS['xmlrpcerr']['server_error'] = 17
$GLOBALS['xmlrpcstr']['no_curl'] = 'No CURL support compiled in.'
$GLOBALS['xmlrpcerr']['no_curl'] = 16
$GLOBALS['xmlrpcstr']['invalid_request'] = 'Invalid request payload'
$GLOBALS['xmlrpcerr']['invalid_request'] = 15
$GLOBALS['xmlrpcstr']['curl_fail'] = 'CURL error'
$GLOBALS['xmlrpcerr']['curl_fail'] = 8
$GLOBALS['xmlrpcstr']['no_ssl'] = 'No SSL support compiled in.'
$GLOBALS['xmlrpcBase64'] = 'base64'
$GLOBALS['xmlrpcstr']['no_data'] = 'No data received from server.'
$GLOBALS['xmlrpcerr']['no_data'] = 6
$GLOBALS['xmlrpcstr']['http_error'] = "Didn't receive 200 OK from remote server."
$GLOBALS['xmlrpcerr']['http_error'] = 5
$GLOBALS['xmlrpcstr']['introspect_unknown'] = "Can't introspect: method unknown"
$GLOBALS['xmlrpcerr']['introspect_unknown'] = 4
$GLOBALS['xmlrpcstr']['incorrect_params'] = 'Incorrect parameters passed to method'
$GLOBALS['xmlrpcerr']['incorrect_params'] = 3
$GLOBALS['xmlrpcstr']['invalid_return'] = 'Invalid return payload: enable debugging to examine incoming payload'
$GLOBALS['xmlrpcerr']['invalid_return'] = 2
$GLOBALS['xmlrpcstr']['unknown_method'] = 'Unknown method'
for ($i=0;$i< 32;$i++) for ($i=160;$i< 256;$i++) $GLOBALS['xmlrpcerr']['unknown_method'] = 1
$GLOBALS['xml_iso88591_Entities']['out'] = array()
$GLOBALS['xml_iso88591_Entities']['in'] = array()
$GLOBALS['xml_iso88591_Entities'] = array()
Valeur initiale :
                'amp'  => '&',
                'quot' => '"',
                'lt'   => '<',
                'gt'   => '>',
                'apos' => "'"
$GLOBALS['xmlrpcTypes']['null'] = 1
$GLOBALS['xmlrpcNull'] = 'null'
Valeur initiale :
                'VALUE' => array('MEMBER', 'DATA', 'PARAM', 'FAULT'),
                'BOOLEAN' => array('VALUE'),
                'I4' => array('VALUE'),
                'INT' => array('VALUE'),
                'STRING' => array('VALUE'),
                'DOUBLE' => array('VALUE'),
                'DATETIME.ISO8601' => array('VALUE'),
                'BASE64' => array('VALUE'),
                'MEMBER' => array('STRUCT'),
                'NAME' => array('MEMBER'),
                'DATA' => array('ARRAY'),
                'ARRAY' => array('VALUE'),
                'STRUCT' => array('VALUE'),
                'PARAM' => array('PARAMS'),
                'METHODNAME' => array('METHODCALL'),
                'PARAMS' => array('METHODCALL', 'METHODRESPONSE'),
                'FAULT' => array('METHODRESPONSE'),
                'NIL' => array('VALUE') 
Valeur initiale :
                $GLOBALS['xmlrpcI4']       => 1,
                $GLOBALS['xmlrpcInt']      => 1,
                $GLOBALS['xmlrpcBoolean']  => 1,
                $GLOBALS['xmlrpcString']   => 1,
                $GLOBALS['xmlrpcDouble']   => 1,
                $GLOBALS['xmlrpcDateTime'] => 1,
                $GLOBALS['xmlrpcBase64']   => 1,
                $GLOBALS['xmlrpcArray']    => 2,
                $GLOBALS['xmlrpcStruct']   => 3
$GLOBALS['xmlrpcValue'] = 'undefined'
$GLOBALS['xmlrpcStruct'] = 'struct'
$GLOBALS['xmlrpcArray'] = 'array'
$GLOBALS['xmlrpcerr']['no_ssl'] = 7
$GLOBALS['xmlrpcDateTime'] = 'dateTime.iso8601'
$GLOBALS['xmlrpcString'] = 'string'
$GLOBALS['xmlrpcDouble'] = 'double'
$GLOBALS['xmlrpcerr']['server_decompress_fail'] = 107
$GLOBALS['xmlrpcInt'] = 'int'
if (!function_exists('xml_parser_create')) $phpversion = phpversion()