Zend Framework
1.12
|
Public Member Functions | |
__construct () | |
Constructor. | |
__call ($method, $params) | |
Proxy calls to system object. | |
addFunction ($function, $namespace= '') | |
Attach a callback as an XMLRPC method. | |
setClass ($class, $namespace= '', $argv=null) | |
Attach class methods as XMLRPC method handlers. | |
fault ($fault=null, $code=404) | |
Raise an xmlrpc server fault. | |
handle ($request=false) | |
Handle an xmlrpc call. | |
loadFunctions ($definition) | |
Load methods as returned from getFunctions. | |
setEncoding ($encoding) | |
Set encoding. | |
getEncoding () | |
Retrieve current encoding. | |
setPersistence ($mode) | |
Do nothing; persistence is handled via Zend_XmlRpc_Server_Cache. | |
setRequest ($request) | |
Set the request object. | |
getRequest () | |
Return currently registered request object. | |
setResponseClass ($class) | |
Set the class to use for the response. | |
getResponseClass () | |
Retrieve current response class. | |
getDispatchTable () | |
Retrieve dispatch table. | |
getFunctions () | |
Returns a list of registered methods. | |
getSystem () | |
Retrieve system object. | |
sendArgumentsToAllMethods ($flag=null) | |
Send arguments to all methods? | |
![]() | |
__construct () | |
Constructor. | |
getFunctions () | |
Returns a list of registered methods. | |
Protected Member Functions | |
_fixType ($type) | |
Map PHP type to XML-RPC type. | |
_handle (Zend_XmlRpc_Request $request) | |
Handle an xmlrpc call (actual work) | |
_registerSystemMethods () | |
Register system methods with the server. | |
![]() | |
_buildCallback (Zend_Server_Reflection_Function_Abstract $reflection) | |
Build callback for method signature. | |
_buildSignature (Zend_Server_Reflection_Function_Abstract $reflection, $class=null) | |
Build a method signature. | |
_dispatch (Zend_Server_Method_Definition $invocable, array $params) | |
Dispatch method. | |
_fixType ($type) | |
Map PHP type to protocol type. | |
Protected Attributes | |
$_encoding = 'UTF-8' | |
$_request = null | |
$_responseClass = 'Zend_XmlRpc_Response_Http' | |
$_table | |
$_typeMap | |
$_sendArgumentsToAllMethods = true | |
![]() | |
$_overwriteExistingMethods = false | |
$_table | |
Additional Inherited Members | |
![]() | |
static | lowerCase (&$value, &$key) |
Lowercase a string. | |
![]() | |
static | $magic_methods |
__construct | ( | ) |
Constructor.
Creates system.* methods.
__call | ( | $method, | |
$params | |||
) |
Proxy calls to system object.
string | $method | |
array | $params |
Zend_XmlRpc_Server_Exception |
|
protected |
Map PHP type to XML-RPC type.
string | $type |
|
protected |
Handle an xmlrpc call (actual work)
Zend_XmlRpc_Request | $request |
Zend_XmlRpcServer_Exception|Exception | Zend_XmlRpcServer_Exceptions are thrown for internal errors; otherwise, any other exception may be thrown by the callback |
|
protected |
Register system methods with the server.
addFunction | ( | $function, | |
$namespace = '' |
|||
) |
Attach a callback as an XMLRPC method.
Attaches a callback as an XMLRPC method, prefixing the XMLRPC method name with $namespace, if provided. Reflection is done on the callback's docblock to create the methodHelp for the XMLRPC method.
Additional arguments to pass to the function at dispatch may be passed; any arguments following the namespace will be aggregated and passed at dispatch time.
string | array | $function | Valid callback |
string | $namespace | Optional namespace prefix |
Zend_XmlRpc_Server_Exception |
Implements Zend_Server_Interface.
fault | ( | $fault = null , |
|
$code = 404 |
|||
) |
Raise an xmlrpc server fault.
string | Exception | $fault | |
int | $code |
Implements Zend_Server_Interface.
getDispatchTable | ( | ) |
Retrieve dispatch table.
getEncoding | ( | ) |
Retrieve current encoding.
getFunctions | ( | ) |
Returns a list of registered methods.
Returns an array of dispatchables (Zend_Server_Reflection_Function, _Method, and _Class items).
Implements Zend_Server_Interface.
getRequest | ( | ) |
Return currently registered request object.
getResponseClass | ( | ) |
Retrieve current response class.
getSystem | ( | ) |
Retrieve system object.
handle | ( | $request = false | ) |
Handle an xmlrpc call.
Zend_XmlRpc_Request | $request | Optional |
Implements Zend_Server_Interface.
loadFunctions | ( | $definition | ) |
Load methods as returned from getFunctions.
Typically, you will not use this method; it will be called using the results pulled from Zend_XmlRpc_Server_Cache::get().
array | Zend_Server_Definition | $definition |
Zend_XmlRpc_Server_Exception | on invalid input |
Implements Zend_Server_Interface.
sendArgumentsToAllMethods | ( | $flag = null | ) |
Send arguments to all methods?
If setClass() is used to add classes to the server, this flag defined how to handle arguments. If set to true, all methods including constructor will receive the arguments. If set to false, only constructor will receive the arguments
setClass | ( | $class, | |
$namespace = '' , |
|||
$argv = null |
|||
) |
Attach class methods as XMLRPC method handlers.
$class may be either a class name or an object. Reflection is done on the class or object to determine the available public methods, and each is attached to the server as an available method; if a $namespace has been provided, that namespace is used to prefix the XMLRPC method names.
Any additional arguments beyond $namespace will be passed to a method at invocation.
string | object | $class | |
string | $namespace | Optional |
mixed | $argv | Optional arguments to pass to methods |
Zend_XmlRpc_Server_Exception | on invalid input |
Implements Zend_Server_Interface.
setEncoding | ( | $encoding | ) |
setPersistence | ( | $mode | ) |
Do nothing; persistence is handled via Zend_XmlRpc_Server_Cache.
mixed | $mode |
Implements Zend_Server_Interface.
setRequest | ( | $request | ) |
Set the request object.
string | Zend_XmlRpc_Request | $request |
Zend_XmlRpc_Server_Exception | on invalid request class or object |
setResponseClass | ( | $class | ) |
Set the class to use for the response.
string | $class |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |