Server/Abstract.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Server
\Zend_Server_Abstract
- Implements
- \Zend_Server_Interface
- Children
- \Zend_XmlRpc_Server
- \Zend_Json_Server
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
Properties

bool $_overwriteExistingMethods = falseFlag; whether or not overwriting existing methods is allowed
falseDetails- Type
- bool

array $magic_methods = array('__call', '__clone', '__construct', '__destruct', '__get', '__isset', '__set', '__set_state', '__sleep', '__tostring', '__unset', '__wakeup')List of PHP magic methods (lowercased)
array('__call', '__clone', '__construct', '__destruct', '__get', '__isset', '__set', '__set_state', '__sleep', '__tostring', '__unset', '__wakeup')Details- Type
- array
- Deprecated
Methods

_buildCallback(\Zend_Server_Reflection_Function_Abstract $reflection) : \Zend_Server_Method_CallbackBuild callback for method signature
| Name | Type | Description |
|---|---|---|
| $reflection | \Zend_Server_Reflection_Function_Abstract |
| Type | Description |
|---|---|
| \Zend_Server_Method_Callback |

_buildSignature(\Zend_Server_Reflection_Function_Abstract $reflection, null | string | object $class = null) : \Zend_Server_Method_DefinitionBuild a method signature
| Name | Type | Description |
|---|---|---|
| $reflection | \Zend_Server_Reflection_Function_Abstract | |
| $class | null | string | object |
| Type | Description |
|---|---|
| \Zend_Server_Method_Definition |
| Exception | Description |
|---|---|
| \Zend_Server_Exception | on duplicate entry |

_dispatch(\Zend_Server_Method_Definition $invocable, array $params) : mixedDispatch method
| Name | Type | Description |
|---|---|---|
| $invocable | \Zend_Server_Method_Definition | |
| $params | array |
| Type | Description |
|---|---|
| mixed |

_fixType(string $type) : stringMap PHP type to protocol type
| Name | Type | Description |
|---|---|---|
| $type | string |
| Type | Description |
|---|---|
| string |

addFunction(string $function, string $namespace = '') : voidNamespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.
| Name | Type | Description |
|---|---|---|
| $function | string | |
| $namespace | string |

fault(mixed $fault = null, int $code = 404) : mixed| Name | Type | Description |
|---|---|---|
| $fault | mixed | |
| $code | int |
| Type | Description |
|---|---|
| mixed |

getFunctions() : \Zend_Server_DefinitionReturns a list of registered methods
Returns an array of method definitions.
| Type | Description |
|---|---|
| \Zend_Server_Definition |

handle(mixed $request = false) : mixedRequests may be passed in, or the server may automagically determine the request based on defaults. Dispatches server request to appropriate method and returns a response
| Name | Type | Description |
|---|---|---|
| $request | mixed |
| Type | Description |
|---|---|
| mixed |

loadFunctions( $definition) : voidUsed for persistence; loads a construct as returned by getFunctions().
| Name | Type | Description |
|---|---|---|
| $definition |

lowerCase( $value, string $key) : stringLowercase a string
Lowercase's a string by reference
| Name | Type | Description |
|---|---|---|
| $value | ||
| $key | string |
| Type | Description |
|---|---|
| string | Lower cased string |
- Deprecated

setClass(mixed $class, string $namespace = '', null | array $argv = null) : voidThe individual implementations should probably allow passing a variable number of arguments in, so that developers may define custom runtime arguments to pass to server methods.
Namespacing is primarily for xmlrpc, but could be used for other implementations as well.
| Name | Type | Description |
|---|---|---|
| $class | mixed | Class name or object instance to examine and attach to the server. |
| $namespace | string | Optional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks. |
| $argv | null | array | Optional array of arguments to pass to callbacks at dispatch. |