errorInfo(); $strMessage = ''; if(!empty($arrErrorInfo) && !empty($arrErrorInfo[0]) && '00000' !== $arrErrorInfo[0]) $strMessage = "\nError-Code: {$arrErrorInfo[0]}\nError-Message: {$arrErrorInfo[2]}\n"; return $strMessage; } /** * * @param $arrQueryDefinition - the complete query definition * * @return (string) a text version of the query definition * * create an text, which contains all *scalar* information * of the query definition. if there are non-scalar information * added, the will be excluded from output * **/ private function flattenQueryDefiniton(array $arrQueryDefinition) { $strMessage = "\nQuery-Definiton:\n"; foreach($arrQueryDefinition AS $strKeyword => $strContent) if(is_scalar($strContent)) $strMessage .= "$strKeyword: $strContent\n"; return $strMessage . "\n"; } }