37 lines
1.1 KiB
PHP
37 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace HermannTelser\Zuladungsliste\Utilities;
|
|
|
|
class Message
|
|
{
|
|
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);
|
|
}
|
|
|
|
public static function debug($filename, $linenumber, $message)
|
|
{
|
|
echo PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.
|
|
'file: '.$filename.PHP_EOL.
|
|
'line: '.$linenumber.PHP_EOL.
|
|
'note: '.$message.PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.PHP_EOL;
|
|
}
|
|
|
|
public static function note($message)
|
|
{
|
|
echo PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.PHP_EOL.
|
|
$message.PHP_EOL.PHP_EOL.
|
|
'-----------------------------------------------------------'.PHP_EOL.PHP_EOL;
|
|
}
|
|
}
|