Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
addFunction ($function, $namespace='') | |
setClass ($class, $namespace='', $argv=null) | |
fault ($fault=null, $code=404) | |
handle ($request=false) | |
getFunctions () | |
loadFunctions ($definition) | |
setPersistence ($mode) | |
Definition at line 30 of file Interface.php.
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.
string | $function | |
string | $namespace | |
null|array | Optional array of arguments to pass to callbacks at dispatch. |
Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.
fault | ( | $fault = null , |
|
$code = 404 |
|||
) |
Generate a server fault
mixed | $fault | |
int | $code |
Implemented in Zend_Soap_Server, and Zend_Soap_AutoDiscover.
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
Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Server_Abstract.
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
mixed | $request |
Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.
loadFunctions | ( | $definition | ) |
Load server definition
Used for persistence; loads a construct as returned by getFunctions().
array | $array |
Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.
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.
mixed | $class | Class name or object instance to examine and attach to the server. |
string | $namespace | Optional namespace with which to prepend method names in the dispatch table. methods in the class will be valid callbacks. |
null|array | Optional array of arguments to pass to callbacks at dispatch. |
Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.
setPersistence | ( | $mode | ) |
Set server persistence
int | $mode |
Implemented in Zend_Soap_Server, Zend_Soap_AutoDiscover, and Zend_Json_Server.