1642. Function

1642.1. Zend\Server\addFunction

ZendServeraddFunction()

Attach a function as a server method

Namespacing is primarily for xmlrpc, but may be used with other implementations to prevent naming collisions.

Parameters:
  • string
  • string
  • null|array – array of arguments to pass to callback at dispatch.
Return type:

void

1643. Function

1643.1. Zend\Server\setClass

ZendServersetClass()

Attach a class to a server

The 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.

Parameters:
  • mixed – Class name or object instance to examine and attach to the server.
  • string – Optional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.
  • null|array – array of arguments to pass to callbacks at dispatch.
Return type:

void

1644. Function

1644.1. Zend\Server\fault

ZendServerfault()

Generate a server fault

Parameters:
  • mixed
  • int
Return type:

mixed

1645. Function

1645.1. Zend\Server\handle

ZendServerhandle()

Handle a request

Requests may be passed in, or the server may automatically determine the request based on defaults. Dispatches server request to appropriate method and returns a response

Parameters:mixed
Return type:mixed

1646. Function

1646.1. Zend\Server\getFunctions

ZendServergetFunctions()

Return a server definition array

Returns a server definition array as created using {@link Reflection}. Can be used for server introspection, documentation, or persistence.

Return type:array

1647. Function

1647.1. Zend\Server\loadFunctions

ZendServerloadFunctions()

Load server definition

Used for persistence; loads a construct as returned by {@link getFunctions()}.

Parameters:array
Return type:void

1648. Function

1648.1. Zend\Server\setPersistence

ZendServersetPersistence()

Set server persistence

Parameters:int
Return type:void

1649. Function

1649.1. Zend\Server\setReturnResponse

ZendServersetReturnResponse()

Sets auto-response flag for the server.

To unify all servers, default behavior should be to auto-emit response.

Parameters:bool
Return type:Server Self instance.

1650. Function

1650.1. Zend\Server\getReturnResponse

ZendServergetReturnResponse()

Returns auto-response flag of the server.

Return type:bool $flag Current status.

1651. Function

1651.1. Zend\Server\getResponse

ZendServergetResponse()

Returns last produced response.

Return type:string|object Content of last response, or response object that implements __toString() methods.