public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new Database(); } return self::$instance; }
function show_error($heading, $message) { $exceptions =& Exceptions::instance(); $exceptions->show_error($heading, $message); }