Moodle  2.2.1
http://www.collinsharper.com
Zend_Soap_AutoDiscover Class Reference
Inheritance diagram for Zend_Soap_AutoDiscover:
Collaboration diagram for Zend_Soap_AutoDiscover:

Public Member Functions

 __construct ($strategy=true, $uri=null)
 setUri ($uri)
 getUri ()
 setOperationBodyStyle (array $operationStyle=array())
 setBindingStyle (array $bindingStyle=array())
 setComplexTypeStrategy ($strategy)
 setClass ($class, $namespace= '', $argv=null)
 addFunction ($function, $namespace= '')
 fault ($fault=null, $code=null)
 handle ($request=false)
 dump ($filename)
 toXml ()
 getFunctions ()
 loadFunctions ($definition)
 setPersistence ($mode)
 getType ($type)

Protected Member Functions

 getSchema ()
 getHostName ()
 getRequestUriWithoutParameters ()
 _addFunctionToWsdl ($function, $wsdl, $port, $binding)

Protected Attributes

 $_wsdl = null
 $_reflection = null
 $_functions = array()
 $_strategy
 $_uri
 $_operationBodyStyle = array('use' => 'encoded', 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/")
 $_bindingStyle = array('style' => 'rpc', 'transport' => 'http://schemas.xmlsoap.org/soap/http')

Detailed Description

Definition at line 51 of file AutoDiscover.php.


Constructor & Destructor Documentation

__construct ( strategy = true,
uri = null 
)

Constructor

Parameters:
boolean | string | Zend_Soap_Wsdl_Strategy_Interface$strategy
string | Zend_Uri$uri

Definition at line 100 of file AutoDiscover.php.

Here is the call graph for this function:


Member Function Documentation

_addFunctionToWsdl ( function,
wsdl,
port,
binding 
) [protected]

Add a function to the WSDL document.

Parameters:
$functionZend_Server_Reflection_Function_Abstract function to add
$wsdlZend_Soap_Wsdl WSDL document
$portobject wsdl:portType
$bindingobject wsdl:binding
Returns:
void

Definition at line 338 of file AutoDiscover.php.

Here is the call graph for this function:

Here is the caller graph for this function:

addFunction ( function,
namespace = '' 
)

Add a Single or Multiple Functions to the WSDL

Parameters:
string$functionFunction Name
string$namespaceFunction namespace - Not Used

Implements Zend_Server_Interface.

Definition at line 293 of file AutoDiscover.php.

Here is the call graph for this function:

dump ( filename)

Proxy to WSDL dump function

Parameters:
string$filename
See also:
Zend_Soap_AutoDiscover_Exception

Definition at line 470 of file AutoDiscover.php.

fault ( fault = null,
code = null 
)

Action to take when an error occurs

Parameters:
string$fault
string | int$code

Implements Zend_Server_Interface.

Definition at line 446 of file AutoDiscover.php.

Return an array of functions in the WSDL

Returns:
array

Implements Zend_Server_Interface.

Definition at line 504 of file AutoDiscover.php.

getHostName ( ) [protected]

Detect and return the current hostname

Returns:
string

Definition at line 211 of file AutoDiscover.php.

Here is the caller graph for this function:

Detect and return the current script name without parameters

Returns:
string

Definition at line 226 of file AutoDiscover.php.

Here is the caller graph for this function:

getSchema ( ) [protected]

Detect and returns the current HTTP/HTTPS Schema

Returns:
string

Definition at line 197 of file AutoDiscover.php.

Here is the caller graph for this function:

getType ( type)

Returns an XSD Type for the given PHP type

Parameters:
string$typePHP Type to get the XSD type for
Returns:
string
Todo:
Exception throwing may be more correct

Definition at line 537 of file AutoDiscover.php.

getUri ( )

Return the current Uri that the SOAP WSDL Service will be located at.

Returns:
Zend_Uri

Definition at line 139 of file AutoDiscover.php.

Here is the call graph for this function:

Here is the caller graph for this function:

handle ( request = false)

Handle the Request

Parameters:
string$requestA non-standard request - Not Used

Implements Zend_Server_Interface.

Definition at line 457 of file AutoDiscover.php.

loadFunctions ( definition)

Load Functions

Parameters:
unknown_type$definition

Implements Zend_Server_Interface.

Definition at line 514 of file AutoDiscover.php.

setBindingStyle ( array bindingStyle = array())

Set Binding soap:binding style.

By default 'style' is 'rpc' and 'transport' is 'http://schemas.xmlsoap.org/soap/http'.

Parameters:
array$bindingStyle
Returns:
Zend_Soap_AutoDiscover

Definition at line 181 of file AutoDiscover.php.

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

Set the Class the SOAP server will use

Parameters:
string$classClass Name
string$namespaceClass Namspace - Not Used
array$argvArguments to instantiate the class - Not Used

Implements Zend_Server_Interface.

Definition at line 267 of file AutoDiscover.php.

Here is the call graph for this function:

setComplexTypeStrategy ( strategy)

Set the strategy that handles functions and classes that are added AFTER this call.

Parameters:
boolean | string | Zend_Soap_Wsdl_Strategy_Interface$strategy
Returns:
Zend_Soap_AutoDiscover

Definition at line 250 of file AutoDiscover.php.

Here is the caller graph for this function:

setOperationBodyStyle ( array operationStyle = array())

Set options for all the binding operations soap:body elements.

By default the options are set to 'use' => 'encoded' and 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/".

See also:
Zend_Soap_AutoDiscover_Exception
Parameters:
array$operationStyle
Returns:
Zend_Soap_AutoDiscover

Definition at line 163 of file AutoDiscover.php.

setPersistence ( mode)

Set Persistance

Parameters:
int$mode

Implements Zend_Server_Interface.

Definition at line 525 of file AutoDiscover.php.

setUri ( uri)

Set the location at which the WSDL file will be availabe.

See also:
Zend_Soap_Exception
Exceptions:
Zend_Soap_AutoDiscover_Exception
Parameters:
Zend_Uri | string$uri
Returns:
Zend_Soap_AutoDiscover

Definition at line 118 of file AutoDiscover.php.

Here is the caller graph for this function:

toXml ( )

Proxy to WSDL toXml() function

See also:
Zend_Soap_AutoDiscover_Exception

Definition at line 486 of file AutoDiscover.php.


Field Documentation

$_bindingStyle = array('style' => 'rpc', 'transport' => 'http://schemas.xmlsoap.org/soap/http') [protected]

Definition at line 92 of file AutoDiscover.php.

$_functions = array() [protected]

Definition at line 66 of file AutoDiscover.php.

$_operationBodyStyle = array('use' => 'encoded', 'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/") [protected]

Definition at line 85 of file AutoDiscover.php.

$_reflection = null [protected]

Definition at line 61 of file AutoDiscover.php.

$_strategy [protected]

Definition at line 71 of file AutoDiscover.php.

$_uri [protected]

Definition at line 78 of file AutoDiscover.php.

$_wsdl = null [protected]

Definition at line 56 of file AutoDiscover.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations