fishbones/core/Pump.php
/**
	 * output error data and die
	 * 
	 * @param $errorString String error info data, to put in the error xml document
	 * send script ouput and die the script
	 * 
	 */
output error data and die

@param $errorString String error info data, to put in the error xml document
send script ouput and die the script
output error data and die @param $errorString String error info data to put in the error xml document send script ouput and die the script
public function outXmlErrorString( $errorString ) {
		header("Content-Type: text/xml");
		header("Cache-Control: no-store, no-cache, must-revalidate");
		$domXml = new DOMDocument('1.0', 'utf-8');
		$dataNode = $domXml->appendChild(new DOMElement('data'));	
		$errorNode = $dataNode->appendChild( new DOMElement('error') );	
		$texNode = $domXml->createTextNode( $errorString );
		$errorNode->appendChild( $texNode );
		$xmlString = $domXml->saveXML();
		Fishbones::getLog()->writeOutput( $xmlString );
		die( $xmlString );
	}
public function outXmlErrorString ( $ errorString ) { header ( " Content-Type: text/xml " ) ; header ( " Cache-Control: no-store, no-cache, must-revalidate " ) ; $ domXml = new DOMDocument ( '1.0' , 'utf-8' ) ; $ dataNode = $ domXml -> appendChild ( new DOMElement ( 'data' ) ) ; $ errorNode = $ dataNode -> appendChild ( new DOMElement ( 'error' ) ) ; $ texNode = $ domXml -> createTextNode ( $ errorString ) ; $ errorNode -> appendChild ( $ texNode ) ; $ xmlString = $ domXml -> saveXML ( ) ; Fishbones :: getLog ( ) -> writeOutput ( $ xmlString ) ; die ( $ xmlString ) ; }
output error data and die
output error data and die
// note these headers // this will be revised in future versions //$errorNode = $dataNode->appendChild( new DOMElement('error', $errorString) );	