Class WsdlToPhpStruct

Description

Class WsdlToPhpStruct stands for an available struct described in the WSDL

Located in /WsdlToPhpStruct.php (line 12)

WsdlToPhpModel
   |
   --WsdlToPhpStruct
Variable Summary
Method Summary
 WsdlToPhpStruct __construct (string $_name, [bool $_isStruct = true])
 WsdlToPhpStructAttribute addAttribute (string $_attributeName, string $_attributeType)
 void addValue (mixed $_value)
 WsdlToPhpStructAttribute|null getAttribute (string $_attributeName)
 array getAttributes ([bool $_includeInheritanceAttributes = false], [bool $_requiredFirst = false])
 array getClassBody ( &$_body, array $_body)
 string getContextualPart ()
 bool getIsStruct ()
 WsdlToPhpStructValue|null getValue (string $_value)
 array getValues ()
 bool isArray ()
 array setAttributes ([array $_attributes = array()])
 bool setIsRestriction ([bool $_isRestriction = true])
 bool setIsStruct ([bool $_isStruct = true])
 array setValues ([array $_values = array()])
 string __toString ()
Variables
array $attributes = array() (line 18)

Attributes of the struct

  • access: private
bool $isRestriction = false (line 23)

Is the struct a restriction with defined values ?

  • access: private
bool $isStruct = false (line 33)

Define if the urrent struct is a concrete struct or just a virtual struct to store meta informations

  • access: private
array $values = array() (line 28)

If the struct is a restriction with values, then store values

  • access: private

Inherited Variables

Inherited from WsdlToPhpModel

WsdlToPhpModel::$inheritance
WsdlToPhpModel::$meta
WsdlToPhpModel::$models
WsdlToPhpModel::$name
WsdlToPhpModel::$owner
WsdlToPhpModel::$phpReserverKeywords
WsdlToPhpModel::$replacedReservedPhpKeywords
WsdlToPhpModel::$uniqueNames
Methods
Constructor __construct (line 42)

Main constructor

WsdlToPhpStruct __construct (string $_name, [bool $_isStruct = true])
  • string $_name: the original name
  • bool $_isStruct: defines if it's a real sruct or not

Redefinition of:
WsdlToPhpModel::__construct()
Main constructor
addAttribute (line 491)

Adds attribute based on its original name

WsdlToPhpStructAttribute addAttribute (string $_attributeName, string $_attributeType)
  • string $_attributeName: the attribute name
  • string $_attributeType: the attribute type
addValue (line 574)

Adds value to values array

void addValue (mixed $_value)
  • mixed $_value: the original value
countOwnAttributes (line 471)

Returns the number of own attributes

int countOwnAttributes ()
getAttribute (line 503)

Returns the attribute by its name, otherwise null

WsdlToPhpStructAttribute|null getAttribute (string $_attributeName)
  • string $_attributeName: the original attribute name
getAttributes (line 406)

Returns the attributes of the struct and potentially from the parent class

array getAttributes ([bool $_includeInheritanceAttributes = false], [bool $_requiredFirst = false])
  • bool $_includeInheritanceAttributes: include the attributes of parent class, default parent attributes are not included. If true, then the array is an associative array containing and index "attribute" for the WsdlToPhpStructAttribute object and an index "model" for the WsdlToPhpStruct object.
  • bool $_requiredFirst: places the required attributes first, then the not required in order to have the _contrust method with the required attribute at first
getContextualPart (line 370)

Returns the contextual part of the class name for the package

string getContextualPart ()

Redefinition of:
WsdlToPhpModel::getContextualPart()
Allows to define the contextual part of the class name for the package
getDocSubPackages (line 381)

Returns the sub package name which the model belongs to

Must be overridden by sub classes

array getDocSubPackages ()

Redefinition of:
WsdlToPhpModel::getDocSubPackages()
Returns the sub package name which the model belongs to
getIsRestriction (line 511)

Returns the isRestriction value

bool getIsRestriction ()
getValue (line 587)

Gets the value object for the given value

WsdlToPhpStructValue|null getValue (string $_value)
  • string $_value: Value name
getValues (line 551)

Returns the values for an enumeration

array getValues ()
isArray (line 392)

Returns true if the current struct is a collection of values (like an array)

bool isArray ()
setAttributes (line 480)

Sets the attributes of the struct

  • access: public
array setAttributes ([array $_attributes = array()])
  • array $_attributes
setIsRestriction (line 521)

Sets the isRestriction value

bool setIsRestriction ([bool $_isRestriction = true])
  • bool $_isRestriction
setIsStruct (line 541)

Sets the isStruct value

bool setIsStruct ([bool $_isStruct = true])
  • bool $_isStruct
setValues (line 561)

Sets the values for an enumeration

array setValues ([array $_values = array()])
  • array $_values
__toString (line 600)

Returns class name

  • return: __CLASS__
  • access: public
string __toString ()

Redefinition of:
WsdlToPhpModel::__toString()
Returns class name

Inherited Methods

Inherited From WsdlToPhpModel

 WsdlToPhpModel::__construct()
 WsdlToPhpModel::addMeta()
 WsdlToPhpModel::addMetaComment()
 WsdlToPhpModel::cleanComment()
 WsdlToPhpModel::cleanString()
 WsdlToPhpModel::getClassBody()
 WsdlToPhpModel::getClassComment()
 WsdlToPhpModel::getClassDeclaration()
 WsdlToPhpModel::getCleanName()
 WsdlToPhpModel::getComment()
 WsdlToPhpModel::getContextualPart()
 WsdlToPhpModel::getDocSubPackages()
 WsdlToPhpModel::getDocumentation()
 WsdlToPhpModel::getFileComment()
 WsdlToPhpModel::getFromSchema()
 WsdlToPhpModel::getGenericWsdlClassName()
 WsdlToPhpModel::getInheritance()
 WsdlToPhpModel::getMeta()
 WsdlToPhpModel::getMetaValue()
 WsdlToPhpModel::getMetaValueFirstSet()
 WsdlToPhpModel::getModelByName()
 WsdlToPhpModel::getModels()
 WsdlToPhpModel::getName()
 WsdlToPhpModel::getOwner()
 WsdlToPhpModel::getPackagedName()
 WsdlToPhpModel::getValueWithinItsType()
 WsdlToPhpModel::nameIsClean()
 WsdlToPhpModel::replaceReservedPhpKeyword()
 WsdlToPhpModel::setDocumentation()
 WsdlToPhpModel::setFromSchema()
 WsdlToPhpModel::setInheritance()
 WsdlToPhpModel::setMeta()
 WsdlToPhpModel::setName()
 WsdlToPhpModel::setOwner()
 WsdlToPhpModel::uniqueName()
 WsdlToPhpModel::updateModels()
 WsdlToPhpModel::__toString()
Class Constants

Documentation generated on Thu, 20 Feb 2014 22:48:29 +0100 by phpDocumentor 1.4.4