XML_RPC2
[ class tree: XML_RPC2 ] [ index: XML_RPC2 ] [ all elements ]

Class: XML_RPC2_Server_CallHandler

Source Location: /XML_RPC2-1.1.2/XML/RPC2/Server/CallHandler.php

Class Overview


A CallHandler is responsible for actually calling the server-exported methods from the exported class.


Author(s):

Copyright:

  • 2004-2006 Sergio Carvalho

Variables

Methods


Child classes:

XML_RPC2_Server_Callhandler_Class
This class is a server call handler which exposes a classe's static public methods.
XML_RPC2_Server_Callhandler_Instance
This class is a server call handler which exposes an instance's public methods.

Inherited Variables

Inherited Methods


Class Details

[line 70]
A CallHandler is responsible for actually calling the server-exported methods from the exported class.

This class is abstract and not meant to be used directly by XML_RPC2 users.

XML_RPC2_Server_CallHandler provides the basic code for a call handler class. An XML_RPC2 Call Handler operates in tandem with an XML_RPC2 server to export a classe's methods. While XML_RPC2 Server is responsible for request decoding and response encoding, the Call Handler is responsible for delegating the actual method call to the intended target.

Different server behaviours can be obtained by plugging different Call Handlers into the XML_RPC2_Server. Namely, there are two call handlers available:

  • XML_RPC2_Server_Callhandler_Class: Which exports a classe's public static methods
  • XML_RPC2_Server_Callhandler_Instance: Which exports an object's pubilc methods



[ Top ]


Class Variables

$methods = array()

[line 80]

methods Field : holds server methods
  • Access: protected

Type:   array


[ Top ]



Method Detail

addMethod   [line 103]

void addMethod( XML_RPC2_Server_Method $method)

method appender
  • Access: protected

Parameters:

XML_RPC2_Server_Method   $method   —  Method to append to methods

[ Top ]

getMethod   [line 117]

void getMethod( string $name, XML_RPC2_Server_Method 1)

method getter
  • Access: public

Parameters:

XML_RPC2_Server_Method   1   —  Method named $name
string   $name   —  Name of method to return

[ Top ]

getMethods   [line 90]

array getMethods( )

methods getter
  • Return: Array of XML_RPC2_Server_Method instances
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.