From ffbd6c6d814e80ec79440600e1713fe83c888235 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 18 Dec 2005 07:34:10 +0000 Subject: [PATCH] Adding construct_debug_block() --- kernel.php | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) diff --git a/kernel.php b/kernel.php index dbcea04..19bb2fa 100644 --- a/kernel.php +++ b/kernel.php @@ -808,6 +808,164 @@ class Shared_Object_Framework } } } + + // ################################################################### + /** + * Constructs a debug information box that contains various debugging + * information points + * + * @access public + * + * @param bool Show template information? + * + * @return string Debugging block + */ + function construct_debug_block($dotemplates) + { + $debug = ''; + + if ($this->registry->debug) + { + // --- START + $debug = "\n"; + + $debug = "\n
\n" . $this->registry->message('Debug Information', $debug, 1, true, false); + $template = str_replace('', "\n\n\n
\n$debug\n
\n\n\n", $template); + } + + return $debug; + } } /*=====================================================================*\ -- 2.43.5