[ Index ] |
|
Code source de Serendipity 1.2 |
[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-2005 The PHP Group |
Version: | CVS: $Id: Server.php,v 1.29 2005/08/14 20:25:35 danielc Exp $ |
Poids: | 628 lignes (21 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
XML_RPC_Server:: (8 méthodes):
XML_RPC_Server()
serializeDebug()
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 |
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 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 : Sat Nov 24 09:00:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |