|
Moodle
2.2.1
http://www.collinsharper.com
|


Definition at line 38 of file Server.php.
| __construct | ( | $ | wsdl = null, |
| array $ | options = null |
||
| ) |
Constructor
Sets display_errors INI setting to off (prevent client errors due to bad XML in response). Registers handlePhpErrors() as error handler for E_USER_ERROR.
If $wsdl is provided, it is passed on to setWsdl(); if any options are specified, they are passed on to setOptions().
| string | $wsdl | |
| array | $options |
Definition at line 160 of file Server.php.

| _getSoap | ( | ) | [protected] |
Get SoapServer object
Uses $_wsdl and return value of getOptions() to instantiate SoapServer object, and then registers any functions or class with it, as well as peristence.
Definition at line 757 of file Server.php.


| _initializeSoapErrorContext | ( | ) | [protected] |
Method initalizes the error context that the SOAPServer enviroment will run in.
Definition at line 855 of file Server.php.

| _setRequest | ( | $ | request | ) | [protected] |
Set request
$request may be any of:
| DOMDocument | DOMNode | SimpleXMLElement | stdClass | string | $request |
Definition at line 676 of file Server.php.

| addFunction | ( | $ | function, |
| $ | namespace = '' |
||
| ) |
Attach a function as a server method
| array | string | $function | Function name, array of function names to attach, or SOAP_FUNCTIONS_ALL to attach all functions |
| string | $namespace | Ignored |
| Zend_Soap_Server_Exception | on invalid functions |
Implements Zend_Server_Interface.
Definition at line 503 of file Server.php.
| deregisterFaultException | ( | $ | class | ) |
Deregister a fault exception from the fault exception stack
| string | $class |
Definition at line 881 of file Server.php.
| fault | ( | $ | fault = null, |
| $ | code = "Receiver" |
||
| ) |
Generate a server fault
Note that the arguments are reverse to those of SoapFault.
If an exception is passed as the first argument, its message and code will be used to create the fault object if it has been registered via { registerFaultException()}.
string|Exception $fault string $code SOAP Fault Codes SoapFault
Implements Zend_Server_Interface.
Reimplemented in moodle_zend_soap_server.
Definition at line 916 of file Server.php.

| getActor | ( | ) |
| getClassmap | ( | ) |
| getEncoding | ( | ) |
| getFunctions | ( | ) |
Return a server definition array
Returns a list of all functions registered with addFunction(), merged with all public methods of the class set with setClass() (if any).
public
Implements Zend_Server_Interface.
Definition at line 611 of file Server.php.
| getLastRequest | ( | ) |
| getLastResponse | ( | ) |
| getOptions | ( | ) |
Return array of options suitable for using with SoapServer constructor
Definition at line 231 of file Server.php.

| getPersistence | ( | ) |
| getSoapFeatures | ( | ) |
| getSoapVersion | ( | ) |
| getUri | ( | ) |
| getWsdl | ( | ) |
| getWsdlCache | ( | ) |
Get current SOAP Wsdl Caching option
Definition at line 489 of file Server.php.
| handle | ( | $ | request = null | ) |
Handle a request
Instantiates SoapServer object with options set in object, and dispatches its handle() method.
$request may be any of:
If no request is passed, pulls request using php:://input (for cross-platform compatability purposes).
| DOMDocument | DOMNode | SimpleXMLElement | stdClass | string | $request | Optional request |
Implements Zend_Server_Interface.
Definition at line 802 of file Server.php.

| handlePhpErrors | ( | $ | errno, |
| $ | errstr, | ||
| $ | errfile = null, |
||
| $ | errline = null, |
||
| array $ | errcontext = null |
||
| ) |
Throw PHP errors as SoapFaults
| int | $errno | |
| string | $errstr | |
| string | $errfile | |
| int | $errline | |
| array | $errcontext |
| SoapFault |
Definition at line 955 of file Server.php.

| loadFunctions | ( | $ | definition | ) |
Unimplemented: Load server definition
| array | $array |
| Zend_Soap_Server_Exception | Unimplemented |
Implements Zend_Server_Interface.
Definition at line 630 of file Server.php.
| registerFaultException | ( | $ | class | ) |
Register a valid fault exception
| string | array | $class | Exception class or array of exception classes |
Definition at line 869 of file Server.php.
| setActor | ( | $ | actor | ) |
Set actor
Actor is the actor URI for the server.
| string | $actor |
Definition at line 347 of file Server.php.


| setClass | ( | $ | class, |
| $ | namespace = '', |
||
| $ | argv = null |
||
| ) |
Attach a class to a server
Accepts a class name to use when handling requests. Any additional arguments will be passed to that class' constructor when instantiated.
See setObject() to set preconfigured object instances as request handlers.
| string | $class | Class Name which executes SOAP Requests at endpoint. |
| Zend_Soap_Server_Exception | if called more than once, or if class does not exist |
Implements Zend_Server_Interface.
Definition at line 549 of file Server.php.
| setClassmap | ( | $ | classmap | ) |
Set classmap
| array | $classmap |
| Zend_Soap_Server_Exception | for any invalid class in the class map |
Definition at line 397 of file Server.php.

| setEncoding | ( | $ | encoding | ) |
Set encoding
| string | $encoding |
| Zend_Soap_Server_Exception | with invalid encoding argument |
Definition at line 272 of file Server.php.

| setObject | ( | $ | object | ) |
Attach an object to a server
Accepts an instanciated object to use when handling requests.
| object | $object |
Definition at line 584 of file Server.php.
| setOptions | ( | $ | options | ) |
Set Options
Allows setting options as an associative array of option => value pairs.
| array | Zend_Config | $options |
Definition at line 184 of file Server.php.


| setPersistence | ( | $ | mode | ) |
Set server persistence
| int | $mode |
Implements Zend_Server_Interface.
Definition at line 642 of file Server.php.
| setReturnResponse | ( | $ | flag | ) |
Set return response flag
If true, handle() will return the response instead of automatically sending it back to the requesting client.
The response is always available via getResponse().
| boolean | $flag |
Definition at line 722 of file Server.php.
| setSoapFeatures | ( | $ | feature | ) |
Set the SOAP Feature options.
| string | int | $feature |
Definition at line 458 of file Server.php.

| setSoapVersion | ( | $ | version | ) |
Set SOAP version
| int | $version | One of the SOAP_1_1 or SOAP_1_2 constants |
| Zend_Soap_Server_Exception | with invalid soap version argument |
Definition at line 300 of file Server.php.

| setUri | ( | $ | uri | ) |
Set URI
URI in SoapServer is actually the target namespace, not a URI; $uri must begin with 'urn:'.
| string | $uri |
| Zend_Soap_Server_Exception | with invalid uri argument |
Definition at line 373 of file Server.php.


| setWsdl | ( | $ | wsdl | ) |
Set wsdl
| string | $wsdl | URI or path to a WSDL |
Definition at line 436 of file Server.php.

| setWsdlCache | ( | $ | options | ) |
Set the SOAP Wsdl Caching Options
| string | int | boolean | $caching |
Definition at line 480 of file Server.php.

| validateUrn | ( | $ | urn | ) |
Check for valid URN
| string | $urn |
| Zend_Soap_Server_Exception | on invalid URN |
Definition at line 328 of file Server.php.

$_actor [protected] |
Definition at line 44 of file Server.php.
$_class [protected] |
Definition at line 50 of file Server.php.
$_classArgs = array() [protected] |
Definition at line 56 of file Server.php.
$_classmap [protected] |
Definition at line 67 of file Server.php.
$_encoding [protected] |
Definition at line 73 of file Server.php.
$_faultExceptions = array() [protected] |
Definition at line 94 of file Server.php.
$_features [protected] |
Definition at line 80 of file Server.php.
$_functions = array() [protected] |
Definition at line 101 of file Server.php.
$_object [protected] |
Object registered with this server
Definition at line 61 of file Server.php.
$_persistence [protected] |
Definition at line 107 of file Server.php.
$_request [protected] |
Definition at line 113 of file Server.php.
$_response [protected] |
Definition at line 119 of file Server.php.
$_returnResponse = false [protected] |
Definition at line 126 of file Server.php.
$_soapVersion = SOAP_1_2 [protected] |
Definition at line 132 of file Server.php.
$_uri [protected] |
Definition at line 144 of file Server.php.
$_wsdl [protected] |
Definition at line 138 of file Server.php.
$_wsdlCache [protected] |
Definition at line 87 of file Server.php.