$_val) { if (isset(${$_key})) { unset(${$_key}); } } } } } /** * Yes, required */ define('REQ_YES', 1); /** * No, not required */ define('REQ_NO', 0); /** * Blue Static ISSO Framework (ISSO) * * This framework allows a common backend to be used amongst all Blue * Static applications and is built to be abstract and flexible. * The base framework handles all loading and module management. * * Constants: * ISSO_MT_START - Define the microtime() value at the top of your * script and this will calculate the total execution * time * SVN - Place SVN keywords (like $Id) to display the information on output * * @author Blue Static * @copyright Copyright ©2002 - [#]year[#], Blue Static * @version $Revision$ * @package ISSO * */ class ISSO { /** * ISSO version * @var string */ private $version = '[#]issoversion[#]'; /** * List of loaded modules * @var array */ private $modules = array(); // ################################################################### /** * Prints a list of all currently loaded framework modules * * @param bool Return the data as an array? * * @return mixed HTML output or an array of loaded modules */ public function show_modules($return = false) { $modules = array(); foreach ($this->modules AS $object) { $module = get_class($object); if (method_exists($object, 'init_as_package') AND in_array($module, $modules)) { $module = $object->init_as_package() . " - ($module)"; } $modules[] = $module; } if ($return) { return $modules; } else { $output = "\n\n\n\n"; $this->message('Loaded Modules', $output, 1); } } // ################################################################### /** * Constructs a debug information box that contains various debugging * information points * * @param bool Show template information? * * @return string Debugging block */ public function construct_debug_block($dotemplates) { $debug = ''; if ($this->debug) { $debug = "\n"; $debug = "\n\n\n
\n\n
\n" . $this->message('Debug Information', $debug, 1, true, false) . "\n
\n\n\n"; } return $debug; } } /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>