/** * Enable development mode * * Used to register an on_shutdown callback to capture * fatal PHP errors * * @static * * @date 2013-05-14 * * @return void */ public static function enable() { if (!self::$registered) { register_shutdown_function(array('BBDev', 'on_shutdown')); self::$registered = true; } }
/** * Enable development mode * * <b>Warning:</b> Dev mode is configured <b>per-instance!</b> * * In development mode, all errors / warnings are * printed to the screen at the very end of the script * * @since 2013-05-14 */ public function enable_dev_mode() { $this->dev_mode = true; BBDev::enable(); }