Style convention applied (incomplete), pre/post filters added for form handler
[shipsimu.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 0db6d280177635b337afad2730293252e5513607..75b851f85ef69b80fd3b5f8d88a652e65d8c1259 100644 (file)
@@ -952,6 +952,19 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                }
                return $className;
        }
+
+       /**
+        * Outputs a debug backtrace and stops further script execution
+        *
+        * @return      void
+        */
+       public function debugBacktrace () {
+               // Sorry, there is no other way getting this nice backtrace
+               print "<pre>\n";
+               debug_print_backtrace();
+               print "</pre>";
+               exit;
+       }
 }
 
 // [EOF]