including system parts is now part of \SYSTEM\system:: to automaticly include optional parts of the systemframework
This commit is contained in:
parent
8579b137d8
commit
bdd9c29c8c
@ -2,9 +2,11 @@
|
||||
|
||||
namespace SYSTEM\LOG;
|
||||
|
||||
abstract class error_handler {
|
||||
class error_handler {
|
||||
//Error Mask E_ALL, E_NOTICE ...
|
||||
abstract public static function MASK();
|
||||
public static function MASK(){
|
||||
throw new \RuntimeException("Implement this");}
|
||||
//Errorhandler
|
||||
abstract public static function CALL(\Exception $E, $errno, $thrown);
|
||||
public static function CALL(\Exception $E, $errno, $thrown){
|
||||
throw new \RuntimeException("Implement this");}
|
||||
}
|
||||
@ -34,4 +34,20 @@ class system {
|
||||
|
||||
public static function isSystemDbInfoPG(){
|
||||
return (\SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE) == \SYSTEM\CONFIG\config_ids::SYS_CONFIG_DB_TYPE_PG);}
|
||||
|
||||
public static function include_ExceptionShortcut(){
|
||||
require_once 'system/log/register_exception_shortcut.php';
|
||||
}
|
||||
|
||||
public static function include_ResultShortcut(){
|
||||
require_once 'system/log/register_result_shortcut.php';
|
||||
}
|
||||
|
||||
public static function register_errorhandler_jsonoutput(){
|
||||
require_once 'system/log/register_errorhandler_jsonoutput.php';
|
||||
}
|
||||
|
||||
public static function register_errorhandler_dbwriter(){
|
||||
require_once 'system/log/register_errorhandler_dbwriter.php';
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user