*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007 - 2009 Roland Haeder, this is free software
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
/**
* The concrete output instance
*/
- private $outputInstance = null;
+ private $outputInstance = NULL;
/**
* An instance of this class
*/
- private static $thisInstance = null;
+ private static $thisInstance = NULL;
/**
* Protected constructor
// Set own instance
self::$thisInstance = $this;
+
+ // Set it so all can use it
+ $this->setDebugInstance($this);
}
/**
* registering the *real* debug output
* @return $debugInstance An instance of this middleware class
*/
- public final static function createDebugMiddleware ($debuggerClass) {
+ public static final function createDebugMiddleware ($debuggerClass) {
// Create an instance if this middleware
$debugInstance = new DebugMiddleware();
*
* @return $thisInstance An instance of this class
*/
- public final static function getInstance() {
+ public static final function getSelfInstance() {
return self::$thisInstance;
}
* browser or debug lines for a log file, etc. to the registered debug
* output instance.
*
- * @param $outStream Data we shall "stream" out to the world
+ * @param $outStream Data we shall 'stream' out to the world
* @return void
*/
public final function output ($outStream) {
// Is the output stream set
if (empty($outStream)) {
- // Initialization phase
+ // @TODO Initialization phase
return;
} // END - if