55 lines
1.4 KiB
PHP
55 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace HermannTelser\Gutachten\Utility;
|
|
|
|
class Message
|
|
{
|
|
// error
|
|
|
|
public static function error($filename, $linenumber, $message)
|
|
{
|
|
die(PHP_EOL.PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
'DOKUMENT: '.$filename.PHP_EOL.
|
|
'ZEILE: '.$linenumber.PHP_EOL.
|
|
'FEHLER: '.$message.PHP_EOL.
|
|
"\nVerarbeitung gestoppt !".PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
PHP_EOL);
|
|
}
|
|
|
|
// warning
|
|
|
|
public static function warning($filename, $linenumber, $message)
|
|
{
|
|
echo PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
'DOKUMENT: '.$filename.PHP_EOL.
|
|
'ZEILE: '.$linenumber.PHP_EOL.
|
|
'WARNUNG: '.$message.PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
PHP_EOL;
|
|
}
|
|
|
|
public static function debug($filename, $linenumber, $message)
|
|
{
|
|
echo PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
'doc: '.$filename.PHP_EOL.
|
|
'line: '.$linenumber.PHP_EOL.
|
|
'note: '.$message.PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
PHP_EOL;
|
|
}
|
|
|
|
// note
|
|
|
|
public static function note($message)
|
|
{
|
|
echo PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
$message.PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL;
|
|
}
|
|
}
|