You are here

function wsdl::addSimpleType in Salesforce Suite 5

Same name in this branch
  1. 5 includes/nusoap.php \wsdl::addSimpleType()
  2. 5 includes/nusoap.orig.php \wsdl::addSimpleType()
Same name and namespace in other branches
  1. 5.2 includes/nusoap.php \wsdl::addSimpleType()
  2. 5.2 includes/nusoap.orig.php \wsdl::addSimpleType()

* adds an XML Schema simple type to the WSDL types * *

Parameters

string $name: * @param string $restrictionBase namespace:name (http://schemas.xmlsoap.org/soap/encoding/:Array) * @param string $typeClass (should always be simpleType) * @param string $phpType (should always be scalar) * @param array $enumeration array of values * @see xmlschema * @access public

File

includes/nusoap.orig.php, line 5672

Class

wsdl
parses a WSDL file, allows access to it's data, other utility methods

Code

function addSimpleType($name, $restrictionBase = '', $typeClass = 'simpleType', $phpType = 'scalar', $enumeration = []) {
  $restrictionBase = strpos($restrictionBase, ':') ? $this
    ->expandQname($restrictionBase) : $restrictionBase;
  $typens = isset($this->namespaces['types']) ? $this->namespaces['types'] : $this->namespaces['tns'];
  $this->schemas[$typens][0]
    ->addSimpleType($name, $restrictionBase, $typeClass, $phpType, $enumeration);
}