API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
iso8601_decode | ( | $ | idate, |
$ | utc = 0 |
||
) |
Given an ISO8601 date string, return a timet in the localtime, or UTC
string | $idate | |
int | $utc | either 0 or 1 |
Référencé par php_xmlrpc_decode().
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 | $timet | (timestamp) |
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!
xmlrpcval | $xmlrpc_val | |
array | $options | if 'decode_php_objs' is set in the options array, xmlrpc structs can be decoded into php objects |
Références $i, et iso8601_decode().
xmlrpc_cd | ( | $ | parser, |
$ | data | ||
) |
xmlrpc_dh | ( | $ | parser, |
$ | data | ||
) |
xmlrpc_ee | ( | $ | parser, |
$ | name, | ||
$ | 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().
xmlrpc_ee_fast | ( | $ | parser, |
$ | name | ||
) |
Used in decoding xmlrpc requests/responses without rebuilding xmlrpc values.
Références $name, et xmlrpc_ee().
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().
xmlrpc_se | ( | $ | parser, |
$ | name, | ||
$ | attrs, | ||
$ | 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().
xmlrpc_se_any | ( | $ | parser, |
$ | name, | ||
$ | attrs | ||
) |
Used in decoding xml chunks that might represent single xmlrpc values.
Références $name, et xmlrpc_se().
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' |
$GLOBALS['xml_iso88591_Entities']['out'] = array() |
$GLOBALS['xml_iso88591_Entities']['in'] = array() |
$GLOBALS['xml_iso88591_Entities'] = array() |
$GLOBALS['xmlEntities'] |
array( 'amp' => '&', 'quot' => '"', 'lt' => '<', 'gt' => '>', 'apos' => "'" )
$GLOBALS['xmlrpcTypes']['null'] = 1 |
$GLOBALS['xmlrpcNull'] = 'null' |
$GLOBALS['xmlrpc_valid_parents'] |
array( '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') )
$GLOBALS['xmlrpcTypes'] |
$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() |