Class PayPal_SDK_Generator

Description

Tool class that handles the PayPal-extended WSDL parsing for generating functional and type classes.

$Id: PayPal_SDK_Generator.html,v 1.19 2005/06/23 17:03:21 chagenbuch Exp $

Located in /PayPal/SDK/Generator.php (line 22)

SOAP_WSDL
   |
   --PayPal_SDK_Generator
Variable Summary
array $_allTypes
Method Summary
PayPal_SDK_Generator PayPal_SDK_Generator ([optional $wsdl = null])
string buildEndpointMap ([optional $endpointXmlFile = null])
string buildMethods ()
array buildTypes ()
array describeMethods ()
string generateProxyCode (string $port)
float getWSDLVersion ()
array listMethods ()
Variables
array $_allTypes = array() (line 31)

Unique list of types defined in the WSDL.

  • access: protected
Methods
Constructor PayPal_SDK_Generator (line 39)

Constructor. Calls the parent SOAP_WSDL constructor to parse the WSDL.

PayPal_SDK_Generator PayPal_SDK_Generator ([optional $wsdl = null])
  • optional $wsdl: string $wsdl The WSDL. Defaults to what's bundled with the SDK.
buildEndpointMap (line 70)

Builds the endpoint mapping file which is included in the SDK.

  • return: PHP code suitable for writing to a file.
string buildEndpointMap ([optional $endpointXmlFile = null])
  • optional $endpointXmlFile: string $endpointXmlFile The endpoint map to use. Defaults to the one bundled with the SDK.
buildMethods (line 130)

Builds the dynamically generated portion of the CallerServices API.

  • return: The dynamically generated API functions (PHP code).
string buildMethods ()
buildTypes (line 98)

Builds PHP class definitions for all of the complexTypes found in the WSDL.

  • return: An array of class definitions.
array buildTypes ()
describeMethods (line 168)

Describe all methods in all portTypes, including their request and return types.

  • return: An array of method name => ('request' => 'type', 'response' => 'type')
array describeMethods ()
generateProxyCode (line 212)

Generates stub code from the WSDL that can be saved to a file

or eval'd into existence. Overrides the SOAP_WSDL implementation to do PayPal-specific type and endpoint handling. Note that that means there are several assumptions specific to PayPal's services, such as that each method takes only one argument.

  • return: The methods for $port.
string generateProxyCode (string $port)
  • string $port: The WSDL port we're currently generating.
getWSDLVersion (line 53)

Returns the version of the WSDL that this SDK is built against.

  • return: The WSDL version.
float getWSDLVersion ()
listMethods (line 149)

List all of the methods in all portTypes.

  • return: An array of method names.
array listMethods ()

Documentation generated on Thu, 23 Jun 2005 13:27:45 -0400 by phpDocumentor 1.2.3