function addSimpleType($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) {
		$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);
	}
function addSimpleType($name, $restrictionBase='', $typeClass='simpleType', $phpType='scalar', $enumeration=array()) {
		$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);
	}
function addSimpleType ( $ name , $ restrictionBase = '' , $ typeClass = 'simpleType' , $ phpType = 'scalar' , $ enumeration = array ( ) ) { $ 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 ) ; }
adds an XML Schema simple type to the WSDL types

@param 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 nusoap_xmlschema
@access public
adds an XML Schema simple type to the WSDL types