From bdd9c29c8c519d6aabde24a93588e2337eca23f6 Mon Sep 17 00:00:00 2001 From: rylon Date: Wed, 31 Jul 2013 18:14:44 +0200 Subject: [PATCH] including system parts is now part of \SYSTEM\system:: to automaticly include optional parts of the systemframework --- log/error_handler/error_handler.php | 8 +++++--- system/system.php | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/log/error_handler/error_handler.php b/log/error_handler/error_handler.php index 20b68b2..61e179e 100644 --- a/log/error_handler/error_handler.php +++ b/log/error_handler/error_handler.php @@ -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");} } \ No newline at end of file diff --git a/system/system.php b/system/system.php index d06120f..8b3fc4f 100644 --- a/system/system.php +++ b/system/system.php @@ -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'; + } } \ No newline at end of file