[ Index ] |
|
Code source de PHP PEAR 1.4.5 |
[Code source] [Imprimer] [Statistiques]
Server commands for our PHP implementation of the XML-RPC protocol This is a PEAR-ified version of Useful inc's XML-RPC for PHP. It has support for HTTP transport, proxies and authentication.
Author: | Edd Dumbill <edd@usefulinc.com> |
Author: | Stig Bakken <stig@php.net> |
Author: | Martin Jansen <mj@php.net> |
Author: | Daniel Convissor <danielc@php.net> |
Copyright: | 1999-2001 Edd Dumbill, 2001-2006 The PHP Group |
Version: | CVS: $Id: Server.php,v 1.37 2006/10/28 16:42:34 danielc Exp $ |
Poids: | 685 lignes (23 kb) |
Inclus ou requis: | 3 fois |
Référencé: | 0 fois |
Nécessite: | 1 fichier XML/RPC.php |
XML_RPC_Server:: (9 méthodes):
XML_RPC_Server()
serializeDebug()
setConvertPayloadEncoding()
service()
createServerPayload()
createServerHeaders()
verifySignature()
parseRequest()
echoInput()
Classe: XML_RPC_Server - X-Ref
A server for receiving and replying to XML RPC requestsXML_RPC_Server($dispMap, $serviceNow = 1, $debug = 0) X-Ref |
Constructor for the XML_RPC_Server class param: array $dispMap the dispatch map. An associative array param: int $serviceNow should the HTTP response be sent now? param: int $debug should debug output be displayed? return: void |
serializeDebug() X-Ref |
return: string the debug information if debug debug mode is on |
setConvertPayloadEncoding($in) X-Ref |
Sets whether the payload's content gets passed through mb_convert_encoding() Returns PEAR_ERROR object if mb_convert_encoding() isn't available. param: int $in where 1 = on, 0 = off return: void |
service() X-Ref |
Sends the response The encoding and content-type are determined by XML_RPC_Message::getEncoding() return: void |
createServerPayload() X-Ref |
Generates the payload and puts it in the $server_payload property If XML_RPC_Server::setConvertPayloadEncoding() was set to true, the payload gets passed through mb_convert_encoding() to ensure the payload matches the encoding set in the XML declaration. The encoding type can be manually set via XML_RPC_Message::setSendEncoding(). return: void |
createServerHeaders() X-Ref |
Determines the HTTP headers and puts them in the $server_headers property return: boolean TRUE if okay, FALSE if $server_payload isn't set. |
verifySignature($in, $sig) X-Ref |
return: array |
parseRequest($data = '') X-Ref |
return: object a new XML_RPC_Response object |
echoInput() X-Ref |
Echos back the input packet as a string value return: void |
XML_RPC_Server_listMethods($server, $m) X-Ref |
Lists all the methods that the XML-RPC server knows how to dispatch return: object a new XML_RPC_Response object |
XML_RPC_Server_methodSignature($server, $m) X-Ref |
Returns an array of known signatures (an array of arrays) for the given method If no signatures are known, returns a none-array (test for type != array to detect missing signature) return: object a new XML_RPC_Response object |
XML_RPC_Server_methodHelp($server, $m) X-Ref |
Returns help text if defined for the method passed, otherwise returns an empty string return: object a new XML_RPC_Response object |
XML_RPC_Server_debugmsg($m) X-Ref |
return: void |
Généré le : Sun Feb 25 14:08:00 2007 | par Balluche grâce à PHPXref 0.7 |