You are here

function nusoap_base::getDebugAsXMLComment in Salesforce Suite 5

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

* gets the current debug data for this instance as an XML comment * this may change the contents of the debug data * *

Return value

debug data as an XML comment * @access public

File

includes/nusoap.php, line 303

Class

nusoap_base
nusoap_base

Code

function &getDebugAsXMLComment() {

  // it would be nice to use a memory stream here to use
  // memory more efficiently
  while (strpos($this->debug_str, '--')) {
    $this->debug_str = str_replace('--', '- -', $this->debug_str);
  }
  return "<!--\n" . $this->debug_str . "\n-->";
}