You are here

function wsdl::end_element in Salesforce Suite 5.2

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

* end-element handler * *

Parameters

string $parser XML parser object: * @param string $name element name * @access private

File

includes/nusoap.php, line 4543

Class

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

Code

function end_element($parser, $name) {

  // unset schema status
  if (ereg('schema$', $name)) {
    $this->status = "";
    $this
      ->appendDebug($this->currentSchema
      ->getDebug());
    $this->currentSchema
      ->clearDebug();
    $this->schemas[$this->currentSchema->schemaTargetNamespace][] = $this->currentSchema;
    $this
      ->debug('Parsing WSDL schema done');
  }
  if ($this->status == 'schema') {
    $this->currentSchema
      ->schemaEndElement($parser, $name);
  }
  else {

    // bring depth down a notch
    $this->depth--;
  }

  // end documentation
  if ($this->documentation) {

    //TODO: track the node to which documentation should be assigned; it can be a part, message, etc.

    //$this->portTypes[$this->currentPortType][$this->currentPortOperation]['documentation'] = $this->documentation;
    $this->documentation = false;
  }
}