fishbones/core/DB.php
/**
	 * takes an string description from an error, and returnn a fishbones standard error DOMDocument
	 *
	 * @param	string $sql	sql query
	 *
	 * @return	DOMDocument|boolean		xml DOMDocument with result data
	 * 			data value pairs, boolean false on error
	 */
takes an string description from an error, and returnn a fishbones standard error DOMDocument

@param       string $sql     sql query

@return      DOMDocument|boolean             xml DOMDocument with result data
data value pairs, boolean false on error
takes an string description from an error and returnn a fishbones standard error DOMDocument @param string $sql sql query @return DOMDocument|boolean xml DOMDocument with result data data value pairs boolean false on error
public function makeErrorXml($errorString) {
		$dom = new DOMDocument('1.0', 'utf-8');
		$dataNode = $dom->appendChild(new DOMElement('data'));	
		$errorNode = $dataNode->appendChild( new DOMElement('error', $errorString) );
		$this->errorXML = $dom;
		return $dom;
	}
public function makeErrorXml ( $ errorString ) { $ dom = new DOMDocument ( '1.0' , 'utf-8' ) ; $ dataNode = $ dom -> appendChild ( new DOMElement ( 'data' ) ) ; $ errorNode = $ dataNode -> appendChild ( new DOMElement ( 'error' , $ errorString ) ) ; $ this -> errorXML = $ dom ; return $ dom ; }
takes an string description from an error, and returnn a fishbones standard error DOMDocument
takes an string description from an error and returnn a fishbones standard error DOMDocument