Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Server_Interface Interface Reference
Inheritance diagram for Zend_Server_Interface:
Zend_Server_Abstract Zend_Soap_AutoDiscover Zend_Soap_Server Zend_Json_Server

Public Member Functions

 addFunction ($function, $namespace='')
 
 setClass ($class, $namespace='', $argv=null)
 
 fault ($fault=null, $code=404)
 
 handle ($request=false)
 
 getFunctions ()
 
 loadFunctions ($definition)
 
 setPersistence ($mode)
 

Detailed Description

Definition at line 30 of file Interface.php.

Member Function Documentation

◆ addFunction()

addFunction (   $function,
  $namespace = '' 
)

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$function
string$namespace
null|arrayOptional array of arguments to pass to callbacks at dispatch.
Returns
void

Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.

◆ fault()

fault (   $fault = null,
  $code = 404 
)

Generate a server fault

Parameters
mixed$fault
int$code
Returns
mixed

Implemented in Zend_Soap_Server, and Zend_Soap_AutoDiscover.

◆ getFunctions()

getFunctions ( )

Return a server definition array

Returns a server definition array as created using Zend_Server_Reflection. Can be used for server introspection, documentation, or persistence.

@access public

Returns
array

Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Server_Abstract.

◆ handle()

handle (   $request = false)

Handle a request

Requests 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

Parameters
mixed$request
Returns
mixed

Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.

◆ loadFunctions()

loadFunctions (   $definition)

Load server definition

Used for persistence; loads a construct as returned by getFunctions().

Parameters
array$array
Returns
void

Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.

◆ setClass()

setClass (   $class,
  $namespace = '',
  $argv = null 
)

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$classClass name or object instance to examine and attach to the server.
string$namespaceOptional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks.
null|arrayOptional array of arguments to pass to callbacks at dispatch.
Returns
void

Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.

◆ setPersistence()

setPersistence (   $mode)

Set server persistence

Todo:
Determine how to implement this
Parameters
int$mode
Returns
void

Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.


The documentation for this interface was generated from the following file: