Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AbstractServer Class Reference

Abstract Server implementation. More...

Public Member Functions

 __construct ()
 Constructor.
 
 getFunctions ()
 Returns a list of registered methods.
 
- Public Member Functions inherited from Server
 addFunction ($function, $namespace= '')
 Attach a function as a server method.
 
 setClass ($class, $namespace= '', $argv=null)
 Attach a class to a server.
 
 fault ($fault=null, $code=404)
 Generate a server fault.
 
 handle ($request=false)
 Handle a request.
 
 loadFunctions ($definition)
 Load server definition.
 
 setPersistence ($mode)
 Set server persistence.
 
 setReturnResponse ($flag=true)
 Sets auto-response flag for the server.
 
 getReturnResponse ()
 Returns auto-response flag of the server.
 
 getResponse ()
 Returns last produced response.
 

Protected Member Functions

 _buildCallback (Reflection\AbstractFunction $reflection)
 Build callback for method signature.
 
 _buildSignature (Reflection\AbstractFunction $reflection, $class=null)
 Build a method signature.
 
 _dispatch (Method\Definition $invokable, array $params)
 Dispatch method.
 
 _fixType ($type)
 Map PHP type to protocol type.
 

Protected Attributes

 $overwriteExistingMethods = false
 
 $table
 

Detailed Description

Abstract Server implementation.

Constructor & Destructor Documentation

__construct ( )

Constructor.

Setup server description

Member Function Documentation

_buildCallback ( Reflection\AbstractFunction  $reflection)
protected

Build callback for method signature.

Deprecated:
Since 2.7.0; method will have private visibility starting in 3.0.
Parameters
Reflection\AbstractFunction$reflection
Returns
Method
_buildSignature ( Reflection\AbstractFunction  $reflection,
  $class = null 
)
protected

Build a method signature.

Deprecated:
Since 2.7.0; method will be renamed to remove underscore prefix in 3.0.
Parameters
Reflection\AbstractFunction$reflection
null | string | object$class
Returns
Method
Exceptions
Exception\RuntimeExceptionon duplicate entry
_dispatch ( Method\Definition  $invokable,
array  $params 
)
protected

Dispatch method.

Deprecated:
Since 2.7.0; method will be renamed to remove underscore prefix in 3.0.
Parameters
Method\Definition$invokable
array$params
Returns
mixed
_fixType (   $type)
abstractprotected

Map PHP type to protocol type.

Deprecated:
Since 2.7.0; method will be renamed to remove underscore prefix in 3.0.
Parameters
string$type
Returns
string
getFunctions ( )

Returns a list of registered methods.

Returns an array of method definitions.

Returns
Definition

Implements Server.

Member Data Documentation

$overwriteExistingMethods = false
protected
$table
protected