$_val) { if (isset(${$_key})) { unset(${$_key}); } } } } } require_once ISSO . '/ExceptionHandler.php'; set_exception_handler(array('BSExceptionHandler', 'handle')); /** * Application Class * * This is an ISSO application class. It holds all of the ISSO system variables as well * as serving as an object registry that is avaliable in the global scope to prevent * globalization of variables. There can only be one instance of this existing * at any given time. * * @author Blue Static * @copyright Copyright (c)2005 - 2009, Blue Static * @package ISSO * */ class BSApp { /** * Debug mode? * @var bool */ private static $debug = false; /** * An array of debug messages * @var array */ private static $debugInfo = array(); /** * Constructor */ private function __construct() {} /** * Sets the debug state * * @param bool Debug mode on? */ public static function set_debug($debug) { self::$debug = $debug; } /** * Gets the debug mode state * * @return bool Debug mode on? */ public static function get_debug() { return self::$debug; } /** * Adds a debug message to the array. This only works when debug mode * is enabled. * * @param string Debug message */ public static function debug($msg) { if (self::$debug) { self::$debugInfo[] = $msg; } } /** * Returns a '; foreach (self::$debugInfo as $notice) { $output .= ""; } return "$output"; } // ################################################################### // modules /** * BSDate * @var object */ public static $date; /** * BSDb * @var object */ public static $db; /** * BSInput * @var object */ public static $input; /** * BSTemplate * @var object */ public static $template; } ?>