WsdlToPhpGeneratorClass WsdlToPhpGenerator This class replaces the original WsdlToPhp class.
It uses the WsdlToPhpModel's classes (WsdlToPhpStruct, WsdlToPhpService, WsdlToPhpFunction, WsdlToPhpStructAttribute, WsdlToPhpStructValue) in order to rationalize informations. From now, each class is clearly identified depending on its behaviour :
Located in /WsdlToPhpGenerator.php (line 294)
SoapClient | --WsdlToPhpGenerator
static bool
audit
(string $_auditName, [string $_auditElement = ''], [int $_spentTime = 0], [bool $_createOnly = false])
static DOMElement|null
findSuitableParent
(DOMNode $_domNode, [bool $_checkName = true], [array $_parentTags = array()], [int $_maxDeep = 5])
void
addServiceFunctionMeta
(string $_functionName, string $_functionInfoName, string $_functionInfoValue)
void
addStructAttributeMeta
(string $_structName, string $_attributeName, string $_attributeInfoName, mixed $_attributeInfoValue)
bool
generateClasses
(string $_packageName, string $_rootDirectory, [int $_rootDirectoryRights = 0775], [bool $_createRootDirectory = true])
void
loadWsdls
([string $_wsdlLocation = ''], [DOMNode $_domNode = null], [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlLocation
(string $_wsdlLocation, DOMNode $_domNode, string $_fromWsdlLocation, [string $_nodeNameMatch = null])
void
manageWsdlNode
([string $_wsdlLocation = ''], [DOMNode $_domNode = null], [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeAttribute
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeDocumentation
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''])
void
manageWsdlNodeElement
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''])
void
manageWsdlNodeEnumeration
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''])
void
manageWsdlNodeExtension
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''])
void
manageWsdlNodeHeader
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeImport
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''])
void
manageWsdlNodeInput
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeInputOutput
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeList
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeOutput
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
void
manageWsdlNodeRestriction
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''])
boolean
manageWsdlNodeUndefined
([string $_wsdlLocation = ''], [DOMNode $_domNode = null], [string $_fromWsdlLocation = ''])
void
manageWsdlNodeUnion
([string $_wsdlLocation = ''], DOMNode $_domNode, [string $_fromWsdlLocation = ''], [string $_nodeNameMatch = null])
WsdlToPhpGenerator
__construct
(string $_pathToWsdl, [string $_login = false], [string $_password = false], [array $_options = array()], [array $_wsdlOptions = array()])
void
setStructAttributeDocumentation
(string $_structName, string $_attributeName, string $_documentation)
static array
$globals
(line 523)
Use intern global variable instead of using the PHP $GLOBALS variable
static array
$optionAddComments
(line 513)
Option to set additional PHP doc block tags to every generated file and class
static int
$optionCategory
(line 458)
Option to categorize classes
static bool
$optionDebug
(line 518)
Option to set debug
static int
$optionGatherMethods
(line 468)
Option to define how to gather methods by classes
static bool
$optionGenerateAutoloadFile
(line 478)
Option to enabled/disable autoload file generation
static bool
$optionGenerateTutorialFile
(line 508)
Option to enabled/disable tutorial file generation
static bool
$optionGenerateWsdlClassFile
(line 483)
Option to enabled/disable wsdl class file generation
static string
$optionGenericConstantsNames
(line 503)
Option to set set the generation of contants names based on the enumeration name with an incremental value
static string
$optionInheritsClassIdentifier
(line 498)
Option to set string that points bases classes from which some classes inherits
static bool
$optionResponseAsWsdlObject
(line 488)
Option to enable/disable encapsulation of response or not in the response class
static bool
$optionSendArrayAsParameter
(line 473)
Option to set that parameters to soap call must be contained by an array where indexex are the parameters name
static bool
$optionSendParametersAsArray
(line 493)
Option to enable/disable encapsulation of request in array with 'parameters' as main index
static int
$optionSubCategory
(line 463)
Option to subcategorize classes
static string
$packageName
(line 448)
Name of the package to use
array
$services
(line 443)
Services arrays
array
$structs
(line 438)
Structs array
array
$wsdls
(line 453)
Wsdl lists
static audit (line 3489)
Method to store audit timing during the process
static auditInit (line 3578)
Method to initialize audit for an element
static executeDomXPathQuery (line 3197)
Execute query on DOMDocument using DOMXPath
static findSuitableParent (line 3176)
Finds the suitable parent node of the current node in maximum 5 parents
Centralize method to find a valid parent
static generateAutoloadFile (line 1180)
Generates autoload file for all classes.
The classes are loaded automatically in order of their dependency regarding their inheritance (defined in WsdlToPhpGenerate::generateStructsClasses() method).
static getAudit (line 3588)
Returns the audit informations
static getGlobal (line 3468)
Gets a global value
static getOptionAddComments (line 1954)
Gets the optionAddComments value
static getOptionCategory (line 1726)
Sets the optionCategory value
static getOptionDebug (line 1971)
Gets the debug mode value
static getOptionGatherMethods (line 1786)
Sets the optionGatherMethods value
static getOptionGenerateAutoloadFile (line 1832)
Gets the optionGenerateAutoloadFile value
static getOptionGenerateTutorialFile (line 1937)
Gets the optionGenerateTutorialFile value
static getOptionGenerateWsdlClassFile (line 1849)
Gets the optionGenerateWsdlClassFile value
static getOptionGenericConstantsNames (line 1920)
Gets the optionGenericConstantsNames value
static getOptionInheritsClassIdentifier (line 1903)
Gets the optionInheritsClassIdentifier value
static getOptionResponseAsWsdlObject (line 1866)
Gets the optionResponseAsWsdlObject value
static getOptionSendArrayAsParameter (line 1815)
Gets the optionSendArrayAsParameter value
static getOptionSendParametersAsArray (line 1883)
Gets the optionResponseAsWsdlObject value
static getOptionSubCategory (line 1756)
Sets the optionSubCategory value
static getPackageName (line 1989)
Gets the package name
static initGlobals (line 3429)
Inits global array dedicated to the class
static populateFile (line 1051)
Populate the php file with the object and the declarations
static setGlobal (line 3452)
Sets a global value
static setOptionAddComments (line 1963)
Sets the optionAddComments value
static setOptionCategory (line 1739)
Sets the optionCategory value
Value must be WsdlToPhpGenerator::OPT_CAT_END_NAME or WsdlToPhpGenerator::OPT_CAT_START_NAME or WsdlToPhpGenerator::OPT_CAT_NONE_NAME
static setOptionDebug (line 1980)
Sts the debug mode
static setOptionGatherMethods (line 1798)
Sets the optionGatherMethods value
Value must be WsdlToPhpGenerator::OPT_GATH_METH_START_NAME or WsdlToPhpGenerator::OPT_GATH_METH_END_NAME
static setOptionGenerateAutoloadFile (line 1841)
Sets the optionGenerateAutoloadFile value
static setOptionGenerateTutorialFile (line 1946)
Sets the optionGenerateTutorialFile value
static setOptionGenerateWsdlClassFile (line 1858)
Sets the optionGenerateWsdlClassFile value
static setOptionGenericConstantsNames (line 1929)
Sets the optionGenericConstantsNames value
static setOptionInheritsClassIdentifier (line 1912)
Sets the optionInheritsClassIdentifier value
static setOptionResponseAsWsdlObject (line 1875)
Sets the optionResponseAsWsdlObject value
static setOptionSendArrayAsParameter (line 1824)
Sets the optionSendArrayAsParameter value
static setOptionSendParametersAsArray (line 1893)
Sets the pptionSendParametersAsArray value
static setOptionSubCategory (line 1769)
Sets the optionSubCategory value
Value must be WsdlToPhpGenerator::OPT_SUB_CAT_END_NAME or WsdlToPhpGenerator::OPT_SUB_CAT_START_NAME or WsdlToPhpGenerator::OPT_SUB_CAT_NONE_NAME
static setPackageName (line 1998)
Sets the package name
static unsetGlobals (line 3439)
Clears the global array dedicated the the class
static wsdlLocationToDomDocument (line 3214)
Returns the DOMDocument object for a wsdl location
addRestrictionValue (line 1590)
Adds value to restriction struct
addService (line 1653)
Adds a service
addServiceFunctionMeta (line 1717)
Adds the service function a meta information
addStruct (line 1456)
Adds type to structs
addStructAttributeMeta (line 1549)
Adds an info to the struct attribute
addStructMeta (line 1472)
Adds an info to the struct
addVirtualStruct (line 1619)
Adds a virtual struct
addWsdl (line 2032)
Adds Wsdl location
addWsdlMeta (line 2045)
Adds Wsdl location meta information
generateClasses (line 653)
Generates all classes based on options
generateClassMap (line 1102)
Generates classMap class
generateServicesClasses (line 1022)
Generates methods by class
generateStructsClasses (line 873)
Generates structs classes based on structs collected
generateTutorialFile (line 1296)
Generates tutorial file
generateWsdlClassFile (line 1224)
Generates Wsdl Class file
getCategory (line 3275)
Gets main category part
getDirectory (line 3251)
Returns directory where to store class and create it if needed
getGather (line 3293)
Gets gather name class
getPart (line 3319)
Gets category part
getService (line 1678)
Gets a service by its name
getServiceFunction (line 1691)
Returns the function
getServiceName (line 3303)
Returns the service name associated to the function/operation name in order to gather them in one service class
getServices (line 1628)
Returns the services
getStruct (line 1443)
Gets the struct by its name
getStructAttribute (line 1535)
Gets the struct by its name
getStructs (line 1424)
Returns the structs
getStructValue (line 1576)
Gets the struct value by its name
getSubCategory (line 3284)
Gets sub category part
getWsdl (line 2015)
Gets the WSDL at the index
getWsdls (line 2006)
Gets the WSDLs
initServices (line 932)
Initialize functions :
initStructs (line 738)
Initialize structs defined in WSDL :
loadWsdls (line 2059)
Methods to load WSDL from current WSDL when current WSDL imports other WSDL
manageWsdlLocation (line 2135)
Default manage method for a location
manageWsdlNode (line 2179)
Default manage method for a node
manageWsdlNodeAttribute (line 2814)
Manages attribute node to extract informations about its type if SoapClient didn't succeed to determine it
manageWsdlNodeDocumentation (line 2491)
Manages element method
manageWsdlNodeElement (line 2467)
Manages element method
manageWsdlNodeEnumeration (line 2442)
Manages an enumeratio tag
manageWsdlNodeExtension (line 2578)
Manages extension method
manageWsdlNodeHeader (line 2633)
Manages header node to extract informations about header types
manageWsdlNodeImport (line 2272)
Manages shema import method
manageWsdlNodeInput (line 2981)
Manages input node
manageWsdlNodeInputOutput (line 3017)
Manages input/output node
manageWsdlNodeList (line 2949)
Manages list node
manageWsdlNodeOutput (line 2994)
Manages output node
manageWsdlNodeRestriction (line 2368)
Manages restriction method
manageWsdlNodeUndefined (line 2255)
Undefined node manage method
manageWsdlNodeUnion (line 2877)
Manages union node
Constructor __construct (line 567)
Constructor
setServiceFunctionDocumentation (line 1703)
Sets the service function documentation
setServices (line 1637)
Sets the services
setStructAttributeDocumentation (line 1563)
Adds struct documentation info
setStructDocumentation (line 1498)
Adds struct documentation info
setStructInheritance (line 1485)
Sets struct inheritance value
setStructIsRestriction (line 1510)
Sets the struct as a restriction, which means it contains the enumeration values
setStructIsStruct (line 1522)
Sets the struct as a srtuct, which means it has to be generated as a class
setStructs (line 1433)
Sets the structs
setStructValueDocumentation (line 1608)
Adds struct value documentation info
setWsdls (line 2024)
Sets the WSDLs
wsdlsLoaded (line 2081)
Method called when wsdls are loaded and all the structs/operations are loaded
Then we can manage some features which can be dependent of all the wsdls linked to the main WSDL
__toString (line 3596)
Returns current class name
Inherited From SoapClient (Internal Class)
constructor SoapClient ( $wsdl, [$options = ] )
__call ( $function_name, $arguments )
__doRequest ( $request, $location, $action, $version, [$one_way = ] )
__getFunctions ( )
__getLastRequest ( )
__getLastRequestHeaders ( )
__getLastResponse ( )
__getLastResponseHeaders ( )
__getTypes ( )
__setCookie ( $name, [$value = ] )
__setLocation ( [$new_location = ] )
__setSoapHeaders ( $soapheaders )
__soapCall ( $function_name, $arguments, [$options = ], [$input_headers = ], [&$output_headers = ] )
OPT_ADD_COMMENTS
= 'option_add_comments_key'
(line 427)
Index to set additional PHP doc block tags to every generated file and class
In order to set additional PHP doc block tags, pass an associative array as for example:
OPT_CAT_END_NAME
= 0
(line 311)
Sets categorization of classes based on the end of the name of the struct or the function
The category set the tree folders
OPT_CAT_KEY
= 'option_category_key'
(line 335)
Index to set categorization when calling the constructor
OPT_CAT_NONE_NAME
= 2
(line 323)
Sets uncategorization of classes
All files are put in the same folder
OPT_CAT_START_NAME
= 1
(line 317)
Sets categorization of classes based on the start of the name of the struct or the function
The category set the tree folders
OPT_CAT_TYPE
= 3
(line 330)
Sets typed categorization of classes Files are put in folder named as their ContextualPart value.
In this cas, there is no subfolder.
OPT_DEBUG
= 'option_debug'
(line 433)
Index to enable/disable debug mode.
Debug only display each call to the audit method to follow the calls and treatments
OPT_GATH_METH_END_NAME
= 0
(line 363)
Sets gathering mode of mtehod per class based on the end of the name of the operation
OPT_GATH_METH_KEY
= 'option_gather_methods_key'
(line 373)
Index to set gathering methods when calling the constructor
OPT_GATH_METH_START_NAME
= 1
(line 368)
Sets gathering mode of mtehod per class based on the start of the name of the operation
OPT_GENERIC_CONSTANTS_NAMES_KEY
= 'option_generic_constants_names_key'
(line 408)
Index to set the generation of contants names based on the enumeration name with an incremental value
OPT_GEN_AUTOLOAD_KEY
= 'option_generate_autaload_file_key'
(line 383)
Index to enable/disable autoload file generation
OPT_GEN_TUTORIAL_KEY
= 'option_generate_tutorial_file_key'
(line 413)
Index to enable/disable tutorial file generation
OPT_GEN_WSDL_CLASS_KEY
= 'option_generate_wsdl_class_key'
(line 388)
Index to enable/disable autoload file generation
OPT_INHERITS_FROM_IDENTIFIER_KEY
= 'option_inherits_from_identifier_key'
(line 403)
Index to set string that points bases classes from which some classes inherits
OPT_RESPONSE_AS_WSDL_OBJECT_KEY
= 'option_response_as_wsdl_object_key'
(line 393)
Index to enable/disable encapsulation of response or not in the response object
OPT_SEND_PARAMETERS_AS_ARRAY_KEY
= 'option_send_parameters_as_array_key'
(line 398)
Index to enable/disable encapsulation of request in array with 'parameters' as main index
OPT_SEND_PARAM_AS_ARRAY_KEY
= 'option_send_param_as_array_key'
(line 378)
Index to set gathering methods when calling the constructor
OPT_SUB_CAT_END_NAME
= 0
(line 341)
Sets subcategorization of classes based on the end of the name of the struct or the function
The category set the tree folders
OPT_SUB_CAT_KEY
= 'option_sub_category_key'
(line 358)
Index to set subcategorization when calling the constructor
OPT_SUB_CAT_NONE_NAME
= 2
(line 353)
Sets uncategorization of classes
All files are put in the same folder
OPT_SUB_CAT_START_NAME
= 1
(line 347)
Sets subcategorization of classes based on the start of the name of the struct or the function
The category set the tree folders
WSDL_TO_PHP_GENERATOR_AUDIT_KEY
= '__WsdlToPhpGeneratorAuditKey__'
(line 305)
Index where audit values are stored in the global var
WSDL_TO_PHP_GENERATOR_GLOBAL_KEY
= '__WsdlToPhpGeneratorGlobalKey__'
(line 300)
Index where global values are stored in order to unset them once when it's necessary and to clean GLOBALS
Documentation generated on Thu, 20 Feb 2014 22:48:28 +0100 by phpDocumentor 1.4.4