public function displayErrors($htmlOutput = true){

        $returnValue = (string) '';

        foreach($this->errors as $error){
            $returnValue .= $error['message'];
            if(isset($error['file']) && isset($error['line'])){
                $returnValue .= ' in file '.$error['file'].', line '.$error['line'];
            }
            $returnValue .= PHP_EOL;
        }

        if($htmlOutput){
            $returnValue = nl2br($returnValue);
        }

        return (string) $returnValue;
    }
public function displayErrors($htmlOutput = true){

        $returnValue = (string) '';

        foreach($this->errors as $error){
            $returnValue .= $error['message'];
            if(isset($error['file']) && isset($error['line'])){
                $returnValue .= ' in file '.$error['file'].', line '.$error['line'];
            }
            $returnValue .= PHP_EOL;
        }

        if($htmlOutput){
            $returnValue = nl2br($returnValue);
        }

        return (string) $returnValue;
    }
public function displayErrors ( $ htmlOutput = true ) { $ returnValue = ( string ) '' ; foreach ( $ this -> errors as $ error ) { $ returnValue .= $ error [ 'message' ] ; if ( isset ( $ error [ 'file' ] ) && isset ( $ error [ 'line' ] ) ) { $ returnValue .= ' in file ' . $ error [ 'file' ] . ', line ' . $ error [ 'line' ] ; } $ returnValue .= PHP_EOL ; } if ( $ htmlOutput ) { $ returnValue = nl2br ( $ returnValue ) ; } return ( string ) $ returnValue ; }
Short description of method displayErrors

@access public
@author Bertrand Chevrier, <bertrand.chevrier@tudor.lu>
@param  boolean htmlOutput
@return string
Short description of method displayErrors